PlaybackState class

Json representation of the playback state

Annotations
  • @JsonSerializable()

Constructors

PlaybackState()
PlaybackState.fromJson(Map<String, dynamic> json)
factory

Properties

actions Actions?
Allows to update the user interface based on which playback actions are available within the current context.
getter/setter pair
context PlayerContext?
A PlayerContext Object. Can be null.
getter/setter pair
currentlyPlayingType CurrentlyPlayingType?
The object type of the currently playing item. Can be one of CurrentlyPlayingType.track, CurrentlyPlayingType.episode, CurrentlyPlayingType.ad or CurrentlyPlayingType.unknown.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isPlaying bool?
true if something is currently playing.
getter/setter pair
isShuffling bool?
The shuffle state. true if shuffle is turned on, false if its turned off
getter/setter pair
item Track?
The currently playing track. Can be null.
getter/setter pair
progressMs int?
Progress into the currently playing track. Can be null.
getter/setter pair
repeatState RepeatState?
The repeat state. Can be RepeatState.off, RepeatState.track or RepeatState.context
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp int?
Unix Millisecond Timestamp when data was fetched
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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