CueTimeline class abstract

Base class for timeline implementations.

Defines the interface for managing and coordinating animation tracks. Subclasses handle the actual track management, progress synchronization, and animation lifecycle.

Inheritance
Implementers

Constructors

CueTimeline()

Properties

defaultConfig → TrackConfig
Default track configuration.
no setter
forwardDuration double
Forward animation duration (max across all tracks).
no setter
hashCode int
The hash code for this object.
no setterinherited
progress double
Overall timeline progress (0-1).
no setter
reverseDuration double
Reverse animation duration (max across all tracks).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status AnimationStatus
Current animation status. Represents the overall status across all tracks (forward, reverse, completed, dismissed).
no setter
tolerance Tolerance
How close to the actual end of the simulation a value at a particular time must be before isDone considers the simulation to be "done".
getter/setter pairinherited
tracks Map<TrackConfig, TrackEntry>
All active tracks mapped by configuration.
no setter

Methods

addEventListener<E extends T>(void listener(E)) → EventDisposer
Add an event listener that will be called with the event data when fireEvent is called.
inherited
addStatusListener(AnimationStatusListener listener) → void
Adds a status listener to be notified of animation state changes.
buildTrack(TrackConfig config) → CueTrack
Builds a track instance for a configuration.
dispose() → void
Disposes timeline resources.
dx(double time) double
The velocity of the object in the simulation at the given time.
inherited
fireEvent(TimelineEvent data) → void
Fire an event with data to all event listeners
inherited
isDone(double time) bool
Whether the simulation is "done" at the given time.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
obtainDefaultTrack() → (CueTrack, ReleaseToken)
Gets or creates the default track.
obtainTrack(TrackConfig config) → (CueTrack, ReleaseToken)
Gets or creates a track for the given configuration.
prepare({required bool forward, double? from, double? target, double? velocity}) → void
Prepares timeline for animation playback.
prepareForRepeat(RepeatConfig config) → void
Prepares timeline for repeating animations.
release(ReleaseToken token) → void
Releases a track obtained via obtainTrack or obtainDefaultTrack.
removeStatusListener(AnimationStatusListener listener) → void
Removes a previously added status listener.
reset() → void
Resets timeline to initial state.
setProgress(double value, {bool forward = true, bool forceLinear = false}) → void
Sets timeline progress (0-1).
toString() String
A string representation of this object.
inherited
willAnimate({required bool forward}) → void
Fires pre-animation event.
x(double time) double
The position of the object in the simulation at the given time.
inherited

Operators

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