ModelAnimationPlayback class final

Playback settings for one visible model instance.

Constructors

ModelAnimationPlayback({required int animationIndex, bool loop = true, double speed = 1, bool paused = false})
Creates playback settings.
const

Properties

animationIndex → int
Selected zero-based clip index.
final
hashCode → int
The hash code for this object.
no setterinherited
loop → bool
Whether playback restarts after reaching the clip end.
final
paused → bool
Whether animation time is temporarily frozen.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
speed → double
Playback time multiplier.
final

Methods

copyWith({int? animationIndex, bool? loop, double? speed, bool? paused}) → ModelAnimationPlayback
Returns a copy with selected fields changed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMessage() → Map<String, Object>
Serializes playback settings for the native renderer bridge.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited