AnimatedProperty<T> class
A property that can be animated between values of type T.
This class manages an animation controller and interpolates between values using a custom lerp function. It automatically triggers widget rebuilds when the animation progresses.
Type Parameters
T- The type of value being animated.
Overview
AnimatedProperty is typically created via AnimatedMixin factory methods
like createAnimatedDouble or createAnimatedColor. When you set a new
value, it smoothly animates from the current value to the target.
Example
// Created via AnimatedMixin
final opacity = createAnimatedDouble(1.0);
// Setting value triggers animation
opacity.value = 0.0;
// Access current value during animation
final current = opacity.value;
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T
-
Gets the current value of the animated property.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited