Animatable class

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

Animatable()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited