PlayerState enum
Indicates the state of the audio player.
Values
- stopped → const PlayerState
-
initial state, stop has been called or an error occurred.
- playing → const PlayerState
-
Currently playing audio.
- paused → const PlayerState
-
Pause has been called.
- completed → const PlayerState
-
The audio successfully completed (reached the end).
- disposed → const PlayerState
-
The player has been disposed and should not be used anymore.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PlayerState> - A constant List of the values in this enum, in order of their declaration.