PlayerState class
The current state of a Player.
- Annotations
-
- @JsonSerializable()
Constructors
- PlayerState({required DateTime time, required Duration position, required bool isConnected, required Duration ping})
- Create a new PlayerState.
-
PlayerState.fromJson(Map<
String, Object?> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
Whether the player is connected.
final
- ping → Duration
-
The player's ping.
final
- position → Duration
-
The position of the current track.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- time → DateTime
-
The current time for this player.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited