An action that repeats another action a fixed number of times.
- Inheritance
- Object
- Action
- ActionInterval
- ActionRepeat
Constructors
- ActionRepeat(ActionInterval action, int numRepeats)
-
Creates a new action that is repeats the passed in action a fixed number of times.
Properties
- action → ActionInterval
-
The action that is repeated.
read-only - curve → Curve
-
The animation curve used to ease the animation.
read / write, inherited - duration → double
-
read-only, inherited
- hashCode → int
-
Get a hash code for this object.
read-only, inherited - numRepeats → int
-
The number of times the action is repeated.
read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
step(
double dt) → void -
Moves to the next time step in an action,
dt
is the delta time since the last time step in seconds. Typically this method is called from theActionController
.inherited -
toString(
) → String -
Returns a string representation of this object.
inherited -
update(
double t) → void -
Sets the action to a specific point in time. The
t
value that is passed in is a normalized value 0.0 to 1.0 of the duration of the action. Every action will always recieve a callback with the end time point (1.0), unless it is cancelled.