AnimationExtensions extension

Extensions for Animation operations and utilities.

on

Properties

clampedValue → double

Available on Animation<double>, provided by the AnimationExtensions extension

Returns the animation value clamped between 0.0 and 1.0.
no setter
isAnimating → bool

Available on Animation<double>, provided by the AnimationExtensions extension

Returns true if the animation is currently animating.
no setter
isCompleted → bool

Available on Animation<double>, provided by the AnimationExtensions extension

Returns true if the animation is completed.
no setter
isDismissed → bool

Available on Animation<double>, provided by the AnimationExtensions extension

Returns true if the animation is dismissed.
no setter
isForward → bool

Available on Animation<double>, provided by the AnimationExtensions extension

Returns true if the animation is forward.
no setter
isNotAnimating → bool

Available on Animation<double>, provided by the AnimationExtensions extension

Returns true if the animation is not animating (completed or dismissed).
no setter
isReverse → bool

Available on Animation<double>, provided by the AnimationExtensions extension

Returns true if the animation is reverse.
no setter
percentage → double

Available on Animation<double>, provided by the AnimationExtensions extension

Returns the animation value as a percentage (0-100).
no setter
percentageInt → int

Available on Animation<double>, provided by the AnimationExtensions extension

Returns the animation value as an integer (0-100).
no setter
reversedValue → double

Available on Animation<double>, provided by the AnimationExtensions extension

Returns the reversed animation value (1.0 - value).
no setter

Methods

isAbove(double threshold) → bool

Available on Animation<double>, provided by the AnimationExtensions extension

Returns true if the animation value is greater than the threshold.
isBelow(double threshold) → bool

Available on Animation<double>, provided by the AnimationExtensions extension

Returns true if the animation value is less than the threshold.
isBetween(double min, double max) → bool

Available on Animation<double>, provided by the AnimationExtensions extension

Returns true if the animation value is between min and max.
mapValue(double min, double max) → double

Available on Animation<double>, provided by the AnimationExtensions extension

Returns the animation value mapped to a range.
mirror() → Animation<double>

Available on Animation<double>, provided by the AnimationExtensions extension

Creates a new animation that mirrors this animation.
withCurve(Curve curve) → double

Available on Animation<double>, provided by the AnimationExtensions extension

Returns the animation value with an easing curve applied.