read method

void read(
  1. ListNotifierSingleMixin updaters
)

Reads data from the provided updaters and adds listeners accordingly.

Implementation

void read(ListNotifierSingleMixin updaters) {
  final GetStateUpdate? listener = _notifyData?.updater;
  if (listener != null && !updaters.containsListener(listener)) {
    updaters.addListener(listener);
    add(() => updaters.removeListener(listener));
  }
}