copyWith method

AlbumData copyWith({
  1. int? id,
  2. String? code,
  3. String? name,
  4. String? nameInEnglish,
  5. int? seqNum,
  6. bool? published,
  7. bool? locked,
  8. Value<String?> imagePath = const Value.absent(),
  9. int? publishedSongCount,
  10. int? totalSongCount,
  11. Value<String?> description = const Value.absent(),
  12. 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,
);