AnimationGroup class
The AnimationGroup class is used to animate multiple Animatables. Those Animatables are animated in parallel and the onComplete callback is called when all Animatables have completed.
See also: Juggler, AnimationGroup, Animatable
Examples:
var ag = new AnimationGroup();
ag.add(new Tween(sprite, 2.0, Transition.easeOutBounce)..animate.x.to(700));
ag.add(new Tween(sprite, 2.0, Transition.linear)..animate.y.to(500));
ag.delay = 1.0;
ag.onStart = () => print("start");
ag.onComplete = () => print("complete");
juggler.add(ag);
juggler.addGroup([
new Tween(sprite, 2.0, Transition.easeOutBounce)..animate.x.to(700),
new Tween(sprite, 2.0, Transition.linear)..animate.y.to(500)])
..onComplete = () => print("complete");
- Implemented types
Constructors
Properties
- delay ↔ num
-
The delay this
AnimatableGroup
waits until it starts animating.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- isComplete → bool
-
Indicates if this
AnimatableGroup
is completed.no setter - onComplete ← void Function()
-
The function that is called when a AnimationGroup is completed.
no getter
- onStart ← void Function()
-
The function that is called when an AnimationGroup starts.
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
Animatable animatable) → void -
Adds the
animatable
to this AnimationGroup. -
advanceTime(
num time) → bool -
This method is called by the Juggler with the
time
past since the last call.override -
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