copyWith<T, T2> method
GeneralPlaylist
copyWith<
T, T2>({ - String? id,
- String? title,
- String? subtitle,
- String? description,
- String? permaURL,
- T2? image,
- int? totalSongs,
- int? followers,
- 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,
);
}