copyWith method

PayStubPayPeriodDetails copyWith({
  1. double? payAmount,
  2. List<PayStubDistributionBreakdown>? distributionBreakdown,
  3. DateTime? endDate,
  4. double? grossEarnings,
  5. String? isoCurrencyCode,
  6. DateTime? payDate,
  7. String? payFrequency,
  8. DateTime? startDate,
  9. String? unofficialCurrencyCode,
})

Implementation

PayStubPayPeriodDetails copyWith(
    {double? payAmount,
    List<PayStubDistributionBreakdown>? distributionBreakdown,
    DateTime? endDate,
    double? grossEarnings,
    String? isoCurrencyCode,
    DateTime? payDate,
    String? payFrequency,
    DateTime? startDate,
    String? unofficialCurrencyCode}) {
  return PayStubPayPeriodDetails(
      payAmount: payAmount ?? this.payAmount,
      distributionBreakdown:
          distributionBreakdown ?? this.distributionBreakdown,
      endDate: endDate ?? this.endDate,
      grossEarnings: grossEarnings ?? this.grossEarnings,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      payDate: payDate ?? this.payDate,
      payFrequency: payFrequency ?? this.payFrequency,
      startDate: startDate ?? this.startDate,
      unofficialCurrencyCode:
          unofficialCurrencyCode ?? this.unofficialCurrencyCode);
}