Animatable<T> class
abstract
An object that can produce a value of type T
given an Animation<double>
as input.
Typically, the values of the input animation are nominally in the range 0.0 to 1.0. In principle, however, any value could be provided.
The main subclass of Animatable is Tween.
- Implementers
Constructors
- Animatable()
-
Abstract const constructor. This constructor enables subclasses to provide
const constructors so that they can be used in const expressions.
const
-
Animatable.fromCallback(AnimatableCallback<
T> callback) -
Create a new Animatable from the provided
callback
.constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
animate(
Animation< double> parent) → Animation<T> - Returns a new Animation that is driven by the given animation but that takes on values determined by this object.
-
chain(
Animatable< double> parent) → Animatable<T> - Returns a new Animatable whose value is determined by first evaluating the given parent and then evaluating this object.
-
evaluate(
Animation< double> animation) → T - The current value of this object for the given Animation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transform(
double t) → T -
Returns the value of the object at point
t
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited