PlaybackEvent class Null safety

Encapsulates the playback state and current position of the player.

Constructors

PlaybackEvent({ProcessingState processingState = ProcessingState.idle, DateTime? updateTime, Duration updatePosition = Duration.zero, Duration bufferedPosition = Duration.zero, Duration? duration, IcyMetadata? icyMetadata, int? currentIndex, int? androidAudioSessionId})

Properties

androidAudioSessionId int?
The current Android AudioSession ID if set.
final
bufferedPosition Duration
The buffer position.
final
currentIndex int?
The index of the currently playing item, or null if no item is selected.
final
duration Duration?
The media duration, or null if unknown.
final
hashCode int
The hash code for this object. [...]
read-only, override
icyMetadata IcyMetadata?
The latest ICY metadata received through the audio stream if available.
final
processingState ProcessingState
The current processing state.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
updatePosition Duration
The position at updateTime.
final
updateTime DateTime
When the last time a position discontinuity happened, as measured in time since the epoch.
final

Methods

copyWith({ProcessingState? processingState, DateTime? updateTime, Duration? updatePosition, Duration? bufferedPosition, Duration? duration, IcyMetadata? icyMetadata, int? currentIndex, int? androidAudioSessionId}) PlaybackEvent
Returns a copy of this event with given properties replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override