didStartListening method Null safety

  1. @override
void didStartListening()
override

Called when the number of listeners changes from zero to one.

Implementation

@override
void didStartListening() {
  if (_parent != null) {
    _parent!.addListener(notifyListeners);
    _parent!.addStatusListener(notifyStatusListeners);
  }
}