copyWithWrapped method

CreditBankIncomeTransaction copyWithWrapped({
  1. Wrapped<double?>? amount,
  2. Wrapped<DateTime?>? date,
  3. Wrapped<String?>? name,
  4. Wrapped<String?>? originalDescription,
  5. Wrapped<bool?>? pending,
  6. Wrapped<String?>? transactionId,
  7. Wrapped<String?>? checkNumber,
  8. Wrapped<String?>? isoCurrencyCode,
  9. Wrapped<String?>? unofficialCurrencyCode,
})

Implementation

CreditBankIncomeTransaction copyWithWrapped(
    {Wrapped<double?>? amount,
    Wrapped<DateTime?>? date,
    Wrapped<String?>? name,
    Wrapped<String?>? originalDescription,
    Wrapped<bool?>? pending,
    Wrapped<String?>? transactionId,
    Wrapped<String?>? checkNumber,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<String?>? unofficialCurrencyCode}) {
  return CreditBankIncomeTransaction(
      amount: (amount != null ? amount.value : this.amount),
      date: (date != null ? date.value : this.date),
      name: (name != null ? name.value : this.name),
      originalDescription: (originalDescription != null
          ? originalDescription.value
          : this.originalDescription),
      pending: (pending != null ? pending.value : this.pending),
      transactionId:
          (transactionId != null ? transactionId.value : this.transactionId),
      checkNumber:
          (checkNumber != null ? checkNumber.value : this.checkNumber),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      unofficialCurrencyCode: (unofficialCurrencyCode != null
          ? unofficialCurrencyCode.value
          : this.unofficialCurrencyCode));
}