copyWith method

UniversityData copyWith({
  1. int? id,
  2. String? code,
  3. String? name,
  4. String? nameInEnglish,
  5. bool? active,
  6. bool? locked,
  7. Value<String?> imagePath = const Value.absent(),
  8. Value<String?> description = const Value.absent(),
  9. Value<String?> note = const Value.absent(),
})

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,
);