notifyListeners method

  1. @protected
  2. @mustCallSuper
void notifyListeners(
  1. BlocEventType type
)

Calls all callbacks currently active

Implementation

@protected
@mustCallSuper
void notifyListeners(s.BlocEventType type) {
  _listeners.removeWhere((e) => e.context.isDisposed);

  for (final listener in _listeners) {
    listener.callback(type);
  }

  super.notifyListeners(type);
}