copyWith method
Employee
copyWith({
- PaystubAddress? address,
- String? name,
- String? maritalStatus,
- TaxpayerID? taxpayerId,
Implementation
Employee copyWith(
{PaystubAddress? address,
String? name,
String? maritalStatus,
TaxpayerID? taxpayerId}) {
return Employee(
address: address ?? this.address,
name: name ?? this.name,
maritalStatus: maritalStatus ?? this.maritalStatus,
taxpayerId: taxpayerId ?? this.taxpayerId);
}