copyWithCompanion method
Implementation
SongData copyWithCompanion(SongCompanion data) {
return SongData(
id: data.id.present ? data.id.value : this.id,
name: data.name.present ? data.name.value : this.name,
locked: data.locked.present ? data.locked.value : this.locked,
published: data.published.present ? data.published.value : this.published,
imagePath: data.imagePath.present ? data.imagePath.value : this.imagePath,
description: data.description.present
? data.description.value
: this.description,
note: data.note.present ? data.note.value : this.note,
youtubeCode: data.youtubeCode.present
? data.youtubeCode.value
: this.youtubeCode,
youtubeVideoInfo: data.youtubeVideoInfo.present
? data.youtubeVideoInfo.value
: this.youtubeVideoInfo,
albumId: data.albumId.present ? data.albumId.value : this.albumId,
);
}