Playlist constructor

Playlist({
  1. List<Audio>? audios,
  2. int startIndex = 0,
})

Implementation

Playlist({List<Audio>? audios, int startIndex = 0}) {
  if (audios != null) {
    this.audios.addAll(audios);
  }
  this.startIndex = startIndex;
}