void notifyStatusListeners(AnimationStatus status)

Calls all the status listeners.

If listeners are added or removed during this function, the modifications will not change which listeners are called during this iteration.

Source

void notifyStatusListeners(AnimationStatus status) {
  List<AnimationStatusListener> localListeners = new List<AnimationStatusListener>.from(_statusListeners);
  for (AnimationStatusListener listener in localListeners)
    listener(status);
}