copyWith method
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,
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,
);
}