Animation class Animation

A reusable description of an animation, parsed from a model.

An Animation is essentially a named bundle of AnimationChannels, each driving a single (node, property) target via a PropertyResolver. To play an animation, instantiate it as an AnimationClip bound to a target subtree with Node.createAnimationClip.

Constructors

Animation({String name = '', List<AnimationChannel>? channels})
Creates an Animation with the given name and channels.

Properties

channels → List<AnimationChannel>
All keyframed channels in this animation.
final
endTime → double
Time of the last keyframe across all channels, in seconds.
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String
Display name of the animation, used by Node.findAnimationByName.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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