copyWithWrapped method

NetPay copyWithWrapped({
  1. Wrapped<double?>? currentAmount,
  2. Wrapped<String?>? description,
  3. Wrapped<String?>? isoCurrencyCode,
  4. Wrapped<String?>? unofficialCurrencyCode,
  5. Wrapped<double?>? ytdAmount,
  6. Wrapped<Total?>? total,
})

Implementation

NetPay copyWithWrapped(
    {Wrapped<double?>? currentAmount,
    Wrapped<String?>? description,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<String?>? unofficialCurrencyCode,
    Wrapped<double?>? ytdAmount,
    Wrapped<Total?>? total}) {
  return NetPay(
      currentAmount:
          (currentAmount != null ? currentAmount.value : this.currentAmount),
      description:
          (description != null ? description.value : this.description),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      unofficialCurrencyCode: (unofficialCurrencyCode != null
          ? unofficialCurrencyCode.value
          : this.unofficialCurrencyCode),
      ytdAmount: (ytdAmount != null ? ytdAmount.value : this.ytdAmount),
      total: (total != null ? total.value : this.total));
}