didStopListening method Null safety

  1. @override
void didStopListening()
override

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

Implementation

@override
void didStopListening() {
  parent.removeStatusListener(_statusChangeHandler);
}