CurveTween class
An Animatable that applies a Curve to the input value.
This does not interpolate between two values; it merely transforms the input double through a curve. Chain it with a Tween to get curved interpolation:
final curved = CurveTween(curve: Curves.easeIn);
final tween = Tween<double>(begin: 0, end: 100);
final animatable = curved.chain(tween);
- Inheritance
-
- Object
- Animatable<
double> - CurveTween
Constructors
- CurveTween({required Curve curve})
- Creates a curve tween.
Properties
Methods
-
animate(
Animation< double> parent) → Animation<double> -
Creates a new Animation by applying this animatable on top of
parent.inherited -
chain(
Animatable< double> parent) → Animatable<double> -
Chains this animatable after
parent.inherited -
evaluate(
Animation< double> animation) → double -
Evaluates this animatable at the current value of
animation.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
transform(
double t) → double -
Returns the value of this animatable at the given
t.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited