addListener method Null safety

  1. @mustCallSuper
  2. @override
void addListener(
  1. VoidCallback listener
)
@mustCallSuper, override

Register a closure to be called when the flow state changes.

Implementation

@mustCallSuper
@override
void addListener(VoidCallback listener) {
  _notifier.addListener(listener);
}