addStatusListenerWithLifecycle method

void addStatusListenerWithLifecycle(
  1. RaiiLifecycleAware lifecycleAware,
  2. AnimationStatusListener onListen, {
  3. String? debugLabel,
})

Adds a status listener that will be automatically removed when the lifecycleAware is disposed.

Implementation

void addStatusListenerWithLifecycle(
  RaiiLifecycleAware lifecycleAware,
  AnimationStatusListener onListen, {
  String? debugLabel,
}) {
  _AnimationStatusListener.withLifecycle(
    lifecycleAware,
    listenable: this,
    onListen: onListen,
    debugLabel: debugLabel,
  );
}