copyWith method

EarningsTotal copyWith({
  1. double? currentAmount,
  2. Pay? currentPay,
  3. Pay? ytdPay,
  4. double? hours,
  5. String? isoCurrencyCode,
  6. String? unofficialCurrencyCode,
  7. double? ytdAmount,
})

Implementation

EarningsTotal copyWith(
    {double? currentAmount,
    Pay? currentPay,
    Pay? ytdPay,
    double? hours,
    String? isoCurrencyCode,
    String? unofficialCurrencyCode,
    double? ytdAmount}) {
  return EarningsTotal(
      currentAmount: currentAmount ?? this.currentAmount,
      currentPay: currentPay ?? this.currentPay,
      ytdPay: ytdPay ?? this.ytdPay,
      hours: hours ?? this.hours,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      unofficialCurrencyCode:
          unofficialCurrencyCode ?? this.unofficialCurrencyCode,
      ytdAmount: ytdAmount ?? this.ytdAmount);
}