removeStatusListener method Null safety

void removeStatusListener(
  1. AnimationStatusListener listener
)

Stops calling the listener every time the status of the animation changes.

Listeners can be added with addStatusListener.

Implementation

void removeStatusListener(AnimationStatusListener listener) {
  final bool removed = _statusListeners.remove(listener);
  if (removed) {
    didUnregisterListener();
  }
}