copyWith method
Paystub
copyWith({
- Deductions? deductions,
- String? docId,
- Earnings? earnings,
- Employee? employee,
- PaystubEmployer? employer,
- EmploymentDetails? employmentDetails,
- NetPay? netPay,
- PayPeriodDetails? payPeriodDetails,
- PaystubDetails? paystubDetails,
- List<
IncomeBreakdown> ? incomeBreakdown, - PaystubYTDDetails? ytdEarnings,
Implementation
Paystub copyWith(
{Deductions? deductions,
String? docId,
Earnings? earnings,
Employee? employee,
PaystubEmployer? employer,
EmploymentDetails? employmentDetails,
NetPay? netPay,
PayPeriodDetails? payPeriodDetails,
PaystubDetails? paystubDetails,
List<IncomeBreakdown>? incomeBreakdown,
PaystubYTDDetails? ytdEarnings}) {
return Paystub(
deductions: deductions ?? this.deductions,
docId: docId ?? this.docId,
earnings: earnings ?? this.earnings,
employee: employee ?? this.employee,
employer: employer ?? this.employer,
employmentDetails: employmentDetails ?? this.employmentDetails,
netPay: netPay ?? this.netPay,
payPeriodDetails: payPeriodDetails ?? this.payPeriodDetails,
paystubDetails: paystubDetails ?? this.paystubDetails,
incomeBreakdown: incomeBreakdown ?? this.incomeBreakdown,
ytdEarnings: ytdEarnings ?? this.ytdEarnings);
}