copyWith method

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

Implementation

Playlist copyWith({
  List<Audio>? audios,
  int? startIndex,
}) {
  return Playlist(
    audios: audios ?? this.audios,
    startIndex: startIndex ?? _startIndex,
  );
}