copyWith method

Playlist copyWith({
  1. List<Media>? medias,
  2. int? index,
})

Implementation

Playlist copyWith({
  List<Media>? medias,
  int? index,
}) {
  return Playlist(
    medias ?? this.medias,
    index: index ?? this.index,
  );
}