LinearAnimation class Null safety

Inheritance

Constructors

LinearAnimation()

Properties

artboard Artboard?
read / write, inherited
context RuntimeArtboard
covariant, read / write, inherited
coreType int
read-only, inherited
coreTypes Set<int>
read-only, inherited
duration int
Duration expressed in number of frames.
read / write, inherited
durationSeconds double
read-only
enableWorkArea bool
Whether or not the work area is enabled.
read / write, inherited
endSeconds double
read-only
fps int
Frames per second used to quantize keyframe times to discrete values that match this rate.
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
hasValidated bool
read-only, inherited
id int
read / write, inherited
keyedObjects Iterable<KeyedObject>
The metadata for the objects that are keyed in this animation.
read-only
loop Loop
read / write
loopValue int
Loop value option matches Loop enumeration.
read / write, inherited
name String
Name of the animation.
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
speed double
Playback speed multiplier.
read / write, inherited
startSeconds double
read-only
workEnd int
End of the work area in frames.
read / write, inherited
workStart int
Start of the work area in frames.
read / write, inherited

Methods

apply(double time, {required CoreContext coreContext, double mix = 1}) → void
Pass in a different core context if you want to apply the animation to a different instance. This isn't meant to be used yet but left as mostly a note to remember that at runtime we have to support applying animations to instances. We do a nice job of not duping all that data at runtime (so animations exist once but entire Rive file can be instanced multiple times playing different positions).
clone<K extends Core<CoreContext>>() → K?
Make a duplicate of this core object, N.B. that all properties including id's are copied.
inherited
copy(covariant LinearAnimationBase source) → void
Copies property values, currently doesn't trigger change callbacks. It's meant to be a helper for clone.
inherited
durationChanged(int from, int to) → void
override
enableWorkAreaChanged(bool from, bool to) → void
override
fpsChanged(int from, int to) → void
override
import(ImportStack stack) bool
internalAddKeyedObject(KeyedObject object) bool
Called by rive_core to add a KeyedObject to the animation. This should be @internal when it's supported.
internalCheckAddKeyedObject(KeyedObject object) bool
loopValueChanged(int from, int to) → void
override
nameChanged(String from, String to) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onAdded() → void
inherited
onAddedDirty() → void
inherited
onRemoved() → void
inherited
remove() → void
inherited
speedChanged(double from, double to) → void
override
toString() String
A string representation of this object. [...]
inherited
validate() bool
inherited
workEndChanged(int from, int to) → void
override
workStartChanged(int from, int to) → void
override

Operators

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