copyWith method

Artist copyWith({
  1. String? id,
  2. String? name,
  3. String? image,
  4. String? permaURL,
  5. ArtistRole? role,
  6. int? priority,
})

Implementation

Artist copyWith({
  String? id,
  String? name,
  String? image,
  String? permaURL,
  ArtistRole? role,
  int? priority,
}) {
  return Artist(
    id: id ?? this.id,
    name: name ?? this.name,
    image: image ?? this.image,
    permaURL: permaURL ?? this.permaURL,
    role: role ?? this.role,
    priority: priority ?? this.priority,
  );
}