notifyListeners method Null safety

  1. @protected
  2. @visibleForTesting
void notifyListeners()

Notifies all the listeners attached to this service

Implementation

@protected
@visibleForTesting
void notifyListeners() {
  for (var listener in _listeners) {
    listener();
  }
}