copyWithCompanion method
Implementation
UniversityData copyWithCompanion(UniversityCompanion data) {
return UniversityData(
id: data.id.present ? data.id.value : this.id,
code: data.code.present ? data.code.value : this.code,
name: data.name.present ? data.name.value : this.name,
nameInEnglish: data.nameInEnglish.present
? data.nameInEnglish.value
: this.nameInEnglish,
active: data.active.present ? data.active.value : this.active,
locked: data.locked.present ? data.locked.value : this.locked,
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,
);
}