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