copyWith method
Implementation
EmploymentDetails copyWith({Pay? annualSalary, DateTime? hireDate}) {
return EmploymentDetails(
annualSalary: annualSalary ?? this.annualSalary,
hireDate: hireDate ?? this.hireDate);
}
EmploymentDetails copyWith({Pay? annualSalary, DateTime? hireDate}) {
return EmploymentDetails(
annualSalary: annualSalary ?? this.annualSalary,
hireDate: hireDate ?? this.hireDate);
}