Playlist class

Playlist

A Playlist represents a list of Medias & currently playing index. This may be opened in Player for playback.

final playable = Playlist(
  [
    Media('file:///C:/Users/Hitesh/Music/Sample.mp3'),
    Media('file:///C:/Users/Hitesh/Video/Sample.mkv'),
    Media('https://www.example.com/sample.mp4'),
    Media('rtsp://www.example.com/live'),
  ],
);

Constructors

Playlist(List<Media> medias, {int index = 0})
Playlist
const

Properties

hashCode int
The hash code for this object.
no setteroverride
index int
Currently playing index.
final
medias List<Media>
Currently opened List of Medias.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({List<Media>? medias, int? index}) Playlist
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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