ReleaseToken class
Token for managing track lifecycle and release.
Returned by CueTimeline.obtainTrack and CueTimeline.obtainDefaultTrack. Must be released via release when no longer needed. Tracks are only removed when all tokens are released (except the default track).
Multiple owners can hold tokens for the same track; reference counting ensures proper lifetime management.
Constructors
- ReleaseToken(TrackConfig config, CueTimeline _timeline)
-
Creates a ReleaseToken for the given config and timeline.
const
Properties
- config → TrackConfig
-
The configuration of the track this token refers to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
) → void - Releases this token, potentially removing the track if no other tokens exist.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited