Transforms the value of the given animation by the given curve.
This class differs from CurvedAnimation in that CurvedAnimation applies a curve to an existing Animation object whereas CurveTween can be chained with another Tween prior to receiving the underlying Animation.
- Inheritance
- Object
- Animatable<double>
- CurveTween
Constructors
- CurveTween({Curve curve })
-
Creates a curve tween.
Properties
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
evaluate(
Animation<double> animation) → double -
The current value of this object for the given animation.
-
animate(
Animation<double> parent) → Animation<double> -
Returns a new Animation that is driven by the given animation but that takes on values determined by this object.
inherited -
chain(
Animatable<double> parent) → Animatable<double> -
Returns a new Animatable whose value is determined by first evaluating the given parent and then evaluating this object.
inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited