V3ToV4 class

v3 → v4: timelines.

AnimationControllerComponent — one flat list of transform keyframes — becomes a TimelinePlayerComponent holding the same motion as an inline timeline: a property track for each transform channel the old keyframes set (absolute, as they were), and an event track. A migration cannot write files, so nothing becomes a .timeline.json by itself; an editor offers to extract one.

The old easings were quadratic, which a cubic bezier draws exactly (ease in, ease out) or as near as makes no difference (ease in-out).

Inheritance

Constructors

V3ToV4()
The v3 → v4 step: each AnimationControllerComponent becomes a TimelinePlayerComponent whose inline timeline has a property track per transform channel its keyframes set, and an event track for its events.
const

Properties

from → int
The scene version this step reads; it leaves the scene at from + 1.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(Map<String, dynamic> json, MigrationRun run) → Map<String, dynamic>
Rewrites json (a private copy) in place and returns it. run holds the packages' rules (MigrationRun.hooks) and collects what the step notices.
override
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