MotionRepeat class

An motion that repeats another motion a fixed number of times.

Inheritance

Constructors

MotionRepeat(MotionInterval motion, int numRepeats)
Creates a new motion that is repeats the passed in motion a fixed number of times. [...]

Properties

curve Curve
The animation curve used to ease the animation. [...]
read / write, inherited
duration double
The total time it will take to complete the motion, in seconds.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
motion MotionInterval
The motion that is repeated.
final
numRepeats int
The number of times the motion is repeated.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, 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 motion, dt is the delta time since the last time step in seconds. Typically this method is called from the MotionController.
inherited
toString() String
Returns a string representation of this object.
inherited
update(double t) → void
Sets the motion 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 motion. Every motion will always recieve a callback with the end time point (1.0), unless it is cancelled.
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited