Playlist class
Represents a playlist of audio sources
Constructors
-
Playlist.new(List<
AudioSource> sources) - Creates a new playlist
- Playlist.empty()
- Creates an empty playlist
Properties
- currentIndex → int
-
Gets the current index
no setter
-
currentIndexStream
→ Stream<
int> -
Gets the stream of current index changes
no setter
- currentSource → AudioSource?
-
Gets the current audio source
no setter
-
currentSourceStream
→ Stream<
AudioSource> -
Gets the stream of current source changes
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sources
→ List<
AudioSource> -
Gets the list of audio sources
no setter
Methods
-
add(
AudioSource source) → int - Adds a source to the playlist
-
addAll(
List< AudioSource> sources) → int - Adds multiple sources to the playlist
-
clear(
) → void - Clears the playlist
-
dispose(
) → void - Disposes of resources
-
insert(
int index, AudioSource source) → bool - Inserts a source at the specified index
-
moveToIndex(
int index) → bool - Moves to a specific index in the playlist
-
next(
) → bool - Moves to the next track in the playlist
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previous(
) → bool - Moves to the previous track in the playlist
-
removeAt(
int index) → bool - Removes the source at the specified index
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited