copyWith method
W2
copyWith({
- PaystubEmployer? employer,
- Employee? employee,
- String? taxYear,
- String? employerIdNumber,
- String? wagesTipsOtherComp,
- String? federalIncomeTaxWithheld,
- String? socialSecurityWages,
- String? socialSecurityTaxWithheld,
- String? medicareWagesAndTips,
- String? medicareTaxWithheld,
- String? socialSecurityTips,
- String? allocatedTips,
- String? box9,
- String? dependentCareBenefits,
- String? nonqualifiedPlans,
- List<
W2Box12> ? box12, - String? statutoryEmployee,
- String? retirementPlan,
- String? thirdPartySickPay,
- String? other,
- List<
W2StateAndLocalWages> ? stateAndLocalWages,
Implementation
W2 copyWith(
{PaystubEmployer? employer,
Employee? employee,
String? taxYear,
String? employerIdNumber,
String? wagesTipsOtherComp,
String? federalIncomeTaxWithheld,
String? socialSecurityWages,
String? socialSecurityTaxWithheld,
String? medicareWagesAndTips,
String? medicareTaxWithheld,
String? socialSecurityTips,
String? allocatedTips,
String? box9,
String? dependentCareBenefits,
String? nonqualifiedPlans,
List<W2Box12>? box12,
String? statutoryEmployee,
String? retirementPlan,
String? thirdPartySickPay,
String? other,
List<W2StateAndLocalWages>? stateAndLocalWages}) {
return W2(
employer: employer ?? this.employer,
employee: employee ?? this.employee,
taxYear: taxYear ?? this.taxYear,
employerIdNumber: employerIdNumber ?? this.employerIdNumber,
wagesTipsOtherComp: wagesTipsOtherComp ?? this.wagesTipsOtherComp,
federalIncomeTaxWithheld:
federalIncomeTaxWithheld ?? this.federalIncomeTaxWithheld,
socialSecurityWages: socialSecurityWages ?? this.socialSecurityWages,
socialSecurityTaxWithheld:
socialSecurityTaxWithheld ?? this.socialSecurityTaxWithheld,
medicareWagesAndTips: medicareWagesAndTips ?? this.medicareWagesAndTips,
medicareTaxWithheld: medicareTaxWithheld ?? this.medicareTaxWithheld,
socialSecurityTips: socialSecurityTips ?? this.socialSecurityTips,
allocatedTips: allocatedTips ?? this.allocatedTips,
box9: box9 ?? this.box9,
dependentCareBenefits:
dependentCareBenefits ?? this.dependentCareBenefits,
nonqualifiedPlans: nonqualifiedPlans ?? this.nonqualifiedPlans,
box12: box12 ?? this.box12,
statutoryEmployee: statutoryEmployee ?? this.statutoryEmployee,
retirementPlan: retirementPlan ?? this.retirementPlan,
thirdPartySickPay: thirdPartySickPay ?? this.thirdPartySickPay,
other: other ?? this.other,
stateAndLocalWages: stateAndLocalWages ?? this.stateAndLocalWages);
}