removeListener method Null safety

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

Remove a previously registered closure from the list of closures that the object notifies.

Implementation

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