Animatable class abstract
This abstract Animatable class declares a common interface for other classes that can be added to the Juggler.
See also: Juggler, Tween, Transition, DelayedCall
Example:
class MyAnimation extends Sprite implements Animatable {
num _totalTime = 0.0;
bool advanceTime(num time) {
_totalTime += time;
// animate something based on _totalTime
return true; // true = continue animation
}
}
var myAnimation = new MyAnimation();
juggler.add(myAnimation);
- Implementers
Constructors
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
-
advanceTime(
num time) → bool -
This method is called by the Juggler with the
time
past since the last call. -
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