copyWith method

Playlist copyWith({
  1. String? id,
  2. String? userId,
  3. String? name,
  4. String? description,
  5. int? shaders,
  6. List<String>? shaderIds,
})

Builds a copy of a Playlist

  • id: The playlist id
  • userId: The user id
  • name: The playlist name
  • description: 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);
}