copyWith method
AlbumData
copyWith(
{ - int? id,
- String? code,
- String? name,
- String? nameInEnglish,
- int? seqNum,
- bool? published,
- bool? locked,
- Value<String?> imagePath = const Value.absent(),
- int? publishedSongCount,
- int? totalSongCount,
- Value<String?> description = const Value.absent(),
- Value<String?> note = const Value.absent(),
})
Implementation
AlbumData copyWith({
int? id,
String? code,
String? name,
String? nameInEnglish,
int? seqNum,
bool? published,
bool? locked,
Value<String?> imagePath = const Value.absent(),
int? publishedSongCount,
int? totalSongCount,
Value<String?> description = const Value.absent(),
Value<String?> note = const Value.absent(),
}) => AlbumData(
id: id ?? this.id,
code: code ?? this.code,
name: name ?? this.name,
nameInEnglish: nameInEnglish ?? this.nameInEnglish,
seqNum: seqNum ?? this.seqNum,
published: published ?? this.published,
locked: locked ?? this.locked,
imagePath: imagePath.present ? imagePath.value : this.imagePath,
publishedSongCount: publishedSongCount ?? this.publishedSongCount,
totalSongCount: totalSongCount ?? this.totalSongCount,
description: description.present ? description.value : this.description,
note: note.present ? note.value : this.note,
);