LinearAnimationInstance class
An AnimationController which controls a StateMachine and provides access to the inputs of the StateMachine.
- Mixed in types
Constructors
- LinearAnimationInstance(dynamic animation, {double speedMultiplier = 1.0, CoreContext? context})
Properties
- animation → LinearAnimation
-
finalinherited
- context ↔ CoreContext?
-
getter/setter pair
- didLoop → bool
-
no setterinherited
- directedSpeed → double
-
no setterinherited
- direction ↔ double
-
Returns the animation's play direction: 1 for forwards, -1 for backwards
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- keepGoing → bool
-
Whether the controller driving this animation should keep requesting
frames be drawn.
no setterinherited
- lastTotalTime → double
-
no setterinherited
- progress → double
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spilledTime → double
-
no setterinherited
- time ↔ double
-
Returns the current time position of the animation in seconds
getter/setter pairinherited
- totalTime → double
-
no setterinherited
Methods
-
addRuntimeEventListener(
OnRuntimeEvent callback) → void -
override
-
advance(
double elapsedSeconds, {KeyedCallbackReporter? callbackReporter}) → bool -
inherited
-
apply(
CoreContext core, {double mix = 1}) → void -
Apply the changes incurred during advance, also automatically fires any
accrued events.
inherited
-
clearSpilledTime(
) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeRuntimeEventListener(
OnRuntimeEvent callback) → void -
override
-
reportEvent(
Event event) → void -
reportKeyedCallback(
int objectId, int propertyKey, double elapsedSeconds) → void -
reset(
{double speedMultiplier = 1}) → void -
Resets the animation to the starting frame
inherited
-
shouldKeepGoing(
double speedMultiplier) → bool -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited