copyWith method

CreditPayStubEmployee copyWith({
  1. CreditPayStubAddress? address,
  2. String? name,
  3. String? maritalStatus,
  4. PayStubTaxpayerID? taxpayerId,
})

Implementation

CreditPayStubEmployee copyWith(
    {CreditPayStubAddress? address,
    String? name,
    String? maritalStatus,
    PayStubTaxpayerID? taxpayerId}) {
  return CreditPayStubEmployee(
      address: address ?? this.address,
      name: name ?? this.name,
      maritalStatus: maritalStatus ?? this.maritalStatus,
      taxpayerId: taxpayerId ?? this.taxpayerId);
}