AnimationRaiiExt<T> extension

Extension that provides a more direct way to add lifecycle-managed status listeners to Animation object.

on

Methods

addStatusListenerWithLifecycle(RaiiLifecycleAware lifecycleAware, AnimationStatusListener onListen, {String? debugLabel}) → void

Available on Animation<T>, provided by the AnimationRaiiExt extension

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