shared/utils/layer_animation_progress library

Classes

LayerAnimationProgress
How far an animation has brought a layer back to rest at one moment.

Functions

applyLayerAnimationCurve(AnimationCurve curve, double t) → double
Eases t (0–1) with curve exactly as the native renderer in pro_video_editor does (applyEasing in ApplyAnimation.kt/.swift).
layerAnimationProgress(LayerAnimation animation, Duration time, {required Duration? start, required Duration? end}) → LayerAnimationProgress?
The progress of animation at time into the video, or null when it does not play then.