MotionDocument class

Available extensions

Constructors

MotionDocument({required String sceneClassName})

Properties

duration → Duration

Available on MotionDocument, provided by the MotionTimelineLayout extension

no setter
groups → List<AnimateGroup>
Declaration order — the file's group fields.
final
hashCode → int
The hash code for this object.
no setterinherited
params → List<SceneParamDecl>
Declared parameters (shared kinds with the scene's), referenced by key values.
final
placements → Map<String, Duration>

Available on MotionDocument, provided by the MotionTimelineLayout extension

Where each placed group starts, by name. A group placed twice keeps its first placement; a speed scales nothing here yet, so a group inside one is drawn at its unscaled offset.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sceneClassName → String
The scene class this motion animates — extends SceneMotion<X> and the type of super.scene.
final
timeline ↔ TimelineExpr
Mandatory: what plays. Par of everything is the tool's default.
getter/setter pair

Methods

durationOf(TimelineExpr expr) → Duration

Available on MotionDocument, provided by the MotionTimelineLayout extension

How long expr runs. A group placed here is the group, so there is nothing to resolve and nothing that can dangle.
groupNamed(String name) → AnimateGroup?
keysReading(String param) → List<MotionKey>
Every key reading param — what a rename follows and a delete names.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
placedRefs() → Iterable<AnimateGroup>
Every group placed in the timeline, in tree order.
repoint(SceneDocument scene) → void
Re-resolve every group's target against scene, by name.
restore(MotionSnapshot state, {SceneDocument? scene}) → void
Write state back. Groups are REVIVED by name and keys by id, the way the scene revives nodes: a bound motion holds group objects and a player holds its writers, and an undo must not detach them. Write state back, re-pointing each group at scene by the name the snapshot recorded.
snapshot() → MotionSnapshot
The motion at one moment, deep-copied — the other half of the editor's undo journal (the scene's is SceneDocument.snapshot).
toJson() → Map<String, Object?>

Available on MotionDocument, provided by the MotionDocumentJson extension

toString() → String
A string representation of this object.
inherited

Operators

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