API Reference 0.7.1rikulo_effectAnimator

Animator abstract class

The animator used to play AnimatorTask.

abstract class Animator {
 factory Animator() => new _Animator();

 /** Adds an animation task, such that it will be
  * called periodically.
  */
 void add(AnimatorTask task);
 /** Removes this animation task.
  *
  * It is called automatically, if the task returns false.
  */
 void remove(AnimatorTask task);
 /** Returns a readonly collection of all animation tasks.
  */
 List<AnimatorTask> get tasks;
}

Constructors

factory Animator() #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
factory Animator() => new _Animator();

Properties

final List<AnimatorTask> tasks #

Returns a readonly collection of all animation tasks.

List<AnimatorTask> get tasks;

Methods

abstract void add(AnimatorTask task) #

Adds an animation task, such that it will be called periodically.

abstract void remove(AnimatorTask task) #

Removes this animation task.

It is called automatically, if the task returns false.