notifyListeners method

void notifyListeners(
  1. T data
)

notify to listeners and rebuild the widgets

only SimpleNotifier or StateNotifier are allowed to call this method, DON'T call to this method since a sub-type of SimpleNotifier or StateNotifier

Implementation

void notifyListeners(T data) {
  _isBusy = Completer();
  if (_listeners.isNotEmpty) {
    for (final entry in _listeners) {
      entry(data);
    }
  }
  _complete();
}