copyWith method

PayPeriodDetails copyWith({
  1. String? startDate,
  2. String? endDate,
  3. String? payDay,
  4. double? grossEarnings,
  5. double? checkAmount,
})

Implementation

PayPeriodDetails copyWith(
    {String? startDate,
    String? endDate,
    String? payDay,
    double? grossEarnings,
    double? checkAmount}) {
  return PayPeriodDetails(
      startDate: startDate ?? this.startDate,
      endDate: endDate ?? this.endDate,
      payDay: payDay ?? this.payDay,
      grossEarnings: grossEarnings ?? this.grossEarnings,
      checkAmount: checkAmount ?? this.checkAmount);
}