addStatusListenerWithLifecycle method
void
addStatusListenerWithLifecycle(
- RaiiLifecycleAware lifecycleAware,
- AnimationStatusListener onListen, {
- 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,
);
}