BarRaceController class final

Deterministic state machine for a frame-clock-driven bar race.

Inheritance

Constructors

BarRaceController({required BarRaceConfig config})

Properties

config BarRaceConfig
no setter
currentFrame BarRaceFrame
no setter
effectiveAxisMaximum double
no setter
effectiveDuration Duration
no setter
effectiveRankedValues List<BarRaceRankedValue>
Values and rank positions interpolated on the active race clock.
no setter
effectiveTotal double?
The optional total interpolated on the same clock as the bar values.
no setter
frameIndex int
no setter
frameTransitionProgress double
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isPlaying bool
no setter
progress double
no setter
rankedValues List<BarRaceRankedValue>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
completeAxisTransition() → void
Resolves any in-flight axis change immediately.
dispose() → void
Discards any resources used by the object.
inherited
next() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
pause() → void
play() → void
previous() bool
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
replaceConfig(BarRaceConfig config, {bool preserveFrame = false}) → void
seek(double normalizedProgress) → void
seekToFrame(int index) → void
setSpeed(double value) → void
toggle() → void
toString() String
A string representation of this object.
inherited
updateAxisTransitionProgress(double progress) → void
Synchronizes a dynamic axis change with the ticker driving the frame.

Operators

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