copyWith<T, T2> method

GeneralPlaylist copyWith<T, T2>({
  1. String? id,
  2. String? title,
  3. String? subtitle,
  4. String? description,
  5. String? permaURL,
  6. T2? image,
  7. int? totalSongs,
  8. int? followers,
  9. List<T>? songs,
})

Implementation

GeneralPlaylist copyWith<T, T2>({
  String? id,
  String? title,
  String? subtitle,
  String? description,
  String? permaURL,
  T2? image,
  int? totalSongs,
  int? followers,
  List<T>? songs,
}) {
  return GeneralPlaylist(
    id: id ?? this.id,
    title: title ?? this.title,
    subtitle: subtitle ?? this.subtitle,
    description: description ?? this.description,
    permaURL: permaURL ?? this.permaURL,
    image: image ?? this.image,
    totalSongs: totalSongs ?? this.totalSongs,
    songs: songs ?? this.songs,
  );
}