copyWith method
PayPeriodDetails
copyWith({
- double? checkAmount,
- List<
DistributionBreakdown> ? distributionBreakdown, - DateTime? endDate,
- double? grossEarnings,
- DateTime? payDate,
- PayPeriodDetailsPayFrequency? payFrequency,
- DateTime? payDay,
- DateTime? startDate,
Implementation
PayPeriodDetails copyWith(
{double? checkAmount,
List<DistributionBreakdown>? distributionBreakdown,
DateTime? endDate,
double? grossEarnings,
DateTime? payDate,
enums.PayPeriodDetailsPayFrequency? payFrequency,
DateTime? payDay,
DateTime? startDate}) {
return PayPeriodDetails(
checkAmount: checkAmount ?? this.checkAmount,
distributionBreakdown:
distributionBreakdown ?? this.distributionBreakdown,
endDate: endDate ?? this.endDate,
grossEarnings: grossEarnings ?? this.grossEarnings,
payDate: payDate ?? this.payDate,
payFrequency: payFrequency ?? this.payFrequency,
payDay: payDay ?? this.payDay,
startDate: startDate ?? this.startDate);
}