copyWithWrapped method

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

Implementation

EarningsTotal copyWithWrapped(
    {Wrapped<double?>? currentAmount,
    Wrapped<Pay?>? currentPay,
    Wrapped<Pay?>? ytdPay,
    Wrapped<double?>? hours,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<String?>? unofficialCurrencyCode,
    Wrapped<double?>? ytdAmount}) {
  return EarningsTotal(
      currentAmount:
          (currentAmount != null ? currentAmount.value : this.currentAmount),
      currentPay: (currentPay != null ? currentPay.value : this.currentPay),
      ytdPay: (ytdPay != null ? ytdPay.value : this.ytdPay),
      hours: (hours != null ? hours.value : this.hours),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      unofficialCurrencyCode: (unofficialCurrencyCode != null
          ? unofficialCurrencyCode.value
          : this.unofficialCurrencyCode),
      ytdAmount: (ytdAmount != null ? ytdAmount.value : this.ytdAmount));
}