addStatusListener method Null safety

void addStatusListener(
  1. AnimationStatusListener listener
)

Calls listener every time the status of the animation changes.

Listeners can be removed with removeStatusListener.

Implementation

void addStatusListener(AnimationStatusListener listener) {
  didRegisterListener();
  _statusListeners.add(listener);
}