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('https://user-images.githubusercontent.com/28951144/229373695-22f88f13-d18f-4288-9bf1-c3e078d83722.mp4'),
    Media('https://user-images.githubusercontent.com/28951144/229373709-603a7a89-2105-4e1b-a5a5-a6c3567c9a59.mp4'),
    Media('https://user-images.githubusercontent.com/28951144/229373716-76da0a4e-225a-44e4-9ee7-3e9006dbc3e3.mp4'),
    Media('https://user-images.githubusercontent.com/28951144/229373718-86ce5e1d-d195-45d5-baa6-ef94041d0b90.mp4'),
    Media('https://user-images.githubusercontent.com/28951144/229373720-14d69157-1a56-4a78-a2f4-d7a134d7c3e9.mp4'),
  ],
);
Inheritance

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