copyWith method
Builds a copy of a Playlist
id
: The playlist iduserId
: The user idname
: The playlist namedescription
: The playlist description
Implementation
Playlist copyWith(
{String? id,
String? userId,
String? name,
String? description,
int? shaders,
List<String>? shaderIds}) {
return Playlist(
id: id ?? this.id,
userId: userId ?? this.userId,
name: name ?? this.name,
description: description ?? this.description);
}