copyWith method

PayPeriodDetails copyWith({
  1. double? checkAmount,
  2. List<DistributionBreakdown>? distributionBreakdown,
  3. DateTime? endDate,
  4. double? grossEarnings,
  5. DateTime? payDate,
  6. PayPeriodDetailsPayFrequency? payFrequency,
  7. DateTime? payDay,
  8. 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);
}