copyWith method

TeacherCompanion copyWith({
  1. Value<int>? id,
  2. Value<String>? fullName,
  3. Value<DateTime>? birthday,
  4. Value<String>? genderId,
  5. Value<String>? teacherPositionId,
  6. Value<bool>? locked,
  7. Value<bool>? active,
  8. Value<int>? universityId,
  9. Value<String?>? countryId,
  10. Value<String?>? youtubeVideoCode,
  11. Value<String>? email,
  12. Value<String?>? skype,
  13. Value<String?>? facebook,
  14. Value<String?>? phoneNumber,
  15. Value<String?>? description,
  16. Value<String?>? note,
  17. Value<String?>? imagePath,
})

Implementation

TeacherCompanion copyWith({
  Value<int>? id,
  Value<String>? fullName,
  Value<DateTime>? birthday,
  Value<String>? genderId,
  Value<String>? teacherPositionId,
  Value<bool>? locked,
  Value<bool>? active,
  Value<int>? universityId,
  Value<String?>? countryId,
  Value<String?>? youtubeVideoCode,
  Value<String>? email,
  Value<String?>? skype,
  Value<String?>? facebook,
  Value<String?>? phoneNumber,
  Value<String?>? description,
  Value<String?>? note,
  Value<String?>? imagePath,
}) {
  return TeacherCompanion(
    id: id ?? this.id,
    fullName: fullName ?? this.fullName,
    birthday: birthday ?? this.birthday,
    genderId: genderId ?? this.genderId,
    teacherPositionId: teacherPositionId ?? this.teacherPositionId,
    locked: locked ?? this.locked,
    active: active ?? this.active,
    universityId: universityId ?? this.universityId,
    countryId: countryId ?? this.countryId,
    youtubeVideoCode: youtubeVideoCode ?? this.youtubeVideoCode,
    email: email ?? this.email,
    skype: skype ?? this.skype,
    facebook: facebook ?? this.facebook,
    phoneNumber: phoneNumber ?? this.phoneNumber,
    description: description ?? this.description,
    note: note ?? this.note,
    imagePath: imagePath ?? this.imagePath,
  );
}