copyWith method

Employee copyWith({
  1. int? id,
  2. int? projectId,
  3. String? employeeId,
  4. String? name,
  5. String? phone,
  6. String? email,
  7. String? gender,
  8. String? position,
  9. String? department,
  10. bool? stopUse,
  11. String? image,
  12. String? bu,
  13. String? project,
  14. String? nationalId,
  15. DateTime? dob,
  16. String? pob,
  17. String? address,
  18. String? reference,
  19. String? status,
  20. String? spouse,
  21. String? children,
  22. String? contact,
  23. String? nameKh,
  24. ProjectAccessRight? accessRight,
  25. String? positionName,
  26. String? systemRoleId,
  27. String? secondarySchool,
  28. String? highSchool,
  29. String? university,
  30. String? masterDegree,
  31. String? doctorDegree,
  32. String? shift,
  33. String? nationality,
  34. String? cardUrl,
  35. String? cardNumber,
  36. String? bankAccount,
  37. String? projectName,
  38. String? systemRolesName,
  39. String? nssf,
})

Implementation

Employee copyWith({
  int? id,
  int? projectId,
  String? employeeId,
  String? name,
  String? phone,
  String? email,
  String? gender,
  String? position,
  String? department,
  bool? stopUse,
  String? image,
  String? bu,
  String? project,
  String? nationalId,
  DateTime? dob,
  String? pob,
  String? address,
  String? reference,
  String? status,
  String? spouse,
  String? children,
  String? contact,
  String? nameKh,
  ProjectAccessRight? accessRight,
  String? positionName,
  String? systemRoleId,
  String? secondarySchool,
  String? highSchool,
  String? university,
  String? masterDegree,
  String? doctorDegree,
  String? shift,
  String? nationality,
  String? cardUrl,
  String? cardNumber,
  String? bankAccount,
  String? projectName,
  String? systemRolesName,
  String? nssf,
}) {
  return Employee(
    id: id ?? this.id,
    projectId: projectId ?? this.projectId,
    employeeId: employeeId ?? this.employeeId,
    name: name ?? this.name,
    phone: phone ?? this.phone,
    email: email ?? this.email,
    gender: gender ?? this.gender,
    position: position ?? this.position,
    department: department ?? this.department,
    stopUse: stopUse ?? this.stopUse,
    image: image ?? this.image,
    bu: bu ?? this.bu,
    project: project ?? this.project,
    nationalId: nationalId ?? this.nationalId,
    dob: dob ?? this.dob,
    pob: pob ?? this.pob,
    address: address ?? this.address,
    reference: reference ?? this.reference,
    status: status ?? this.status,
    spouse: spouse ?? this.spouse,
    children: children ?? this.children,
    contact: contact ?? this.contact,
    nameKh: nameKh ?? this.nameKh,
    accessRight: accessRight ?? this.accessRight,
    positionName: positionName ?? this.positionName,
    systemRoleId: systemRoleId ?? this.systemRoleId,
    secondarySchool: secondarySchool ?? this.secondarySchool,
    highSchool: highSchool ?? this.highSchool,
    university: university ?? this.university,
    masterDegree: masterDegree ?? this.masterDegree,
    doctorDegree: doctorDegree ?? this.doctorDegree,
    shift: shift ?? this.shift,
    nationality: nationality ?? this.nationality,
    cardUrl: cardUrl ?? this.cardUrl,
    cardNumber: cardNumber ?? this.cardNumber,
    bankAccount: bankAccount ?? this.bankAccount,
    projectName: projectName ?? this.projectName,
    systemRolesName: systemRolesName ?? this.systemRolesName,
    nssf: nssf ?? this.nssf,
  );
}