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
-
- Object
- SceneMigration
- V3ToV4
Constructors
- V3ToV4()
-
The v3 → v4 step: each
AnimationControllerComponentbecomes aTimelinePlayerComponentwhoseinlinetimeline has a property track per transform channel its keyframes set, and an event track for its events.const
Properties
Methods
-
apply(
Map< String, dynamic> json, MigrationRun run) → Map<String, dynamic> -
Rewrites
json(a private copy) in place and returns it.runholds 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