copyWithWrapped method

Transaction copyWithWrapped({
  1. Wrapped<TransactionPaymentChannel>? paymentChannel,
  2. Wrapped<DateTime?>? authorizedDate,
  3. Wrapped<DateTime?>? authorizedDatetime,
  4. Wrapped<DateTime?>? datetime,
  5. Wrapped<TransactionCode?>? transactionCode,
  6. Wrapped<PersonalFinanceCategory?>? personalFinanceCategory,
  7. Wrapped<TransactionTransactionType?>? transactionType,
  8. Wrapped<String?>? pendingTransactionId,
  9. Wrapped<String?>? categoryId,
  10. Wrapped<List<String>?>? category,
  11. Wrapped<Location>? location,
  12. Wrapped<PaymentMeta>? paymentMeta,
  13. Wrapped<String?>? accountOwner,
  14. Wrapped<String>? name,
  15. Wrapped<String?>? originalDescription,
  16. Wrapped<String>? accountId,
  17. Wrapped<double>? amount,
  18. Wrapped<String?>? isoCurrencyCode,
  19. Wrapped<String?>? unofficialCurrencyCode,
  20. Wrapped<DateTime>? date,
  21. Wrapped<bool>? pending,
  22. Wrapped<String>? transactionId,
  23. Wrapped<String?>? merchantName,
  24. Wrapped<String?>? checkNumber,
})

Implementation

Transaction copyWithWrapped(
    {Wrapped<enums.TransactionPaymentChannel>? paymentChannel,
    Wrapped<DateTime?>? authorizedDate,
    Wrapped<DateTime?>? authorizedDatetime,
    Wrapped<DateTime?>? datetime,
    Wrapped<enums.TransactionCode?>? transactionCode,
    Wrapped<PersonalFinanceCategory?>? personalFinanceCategory,
    Wrapped<enums.TransactionTransactionType?>? transactionType,
    Wrapped<String?>? pendingTransactionId,
    Wrapped<String?>? categoryId,
    Wrapped<List<String>?>? category,
    Wrapped<Location>? location,
    Wrapped<PaymentMeta>? paymentMeta,
    Wrapped<String?>? accountOwner,
    Wrapped<String>? name,
    Wrapped<String?>? originalDescription,
    Wrapped<String>? accountId,
    Wrapped<double>? amount,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<String?>? unofficialCurrencyCode,
    Wrapped<DateTime>? date,
    Wrapped<bool>? pending,
    Wrapped<String>? transactionId,
    Wrapped<String?>? merchantName,
    Wrapped<String?>? checkNumber}) {
  return Transaction(
      paymentChannel: (paymentChannel != null
          ? paymentChannel.value
          : this.paymentChannel),
      authorizedDate: (authorizedDate != null
          ? authorizedDate.value
          : this.authorizedDate),
      authorizedDatetime: (authorizedDatetime != null
          ? authorizedDatetime.value
          : this.authorizedDatetime),
      datetime: (datetime != null ? datetime.value : this.datetime),
      transactionCode: (transactionCode != null
          ? transactionCode.value
          : this.transactionCode),
      personalFinanceCategory: (personalFinanceCategory != null
          ? personalFinanceCategory.value
          : this.personalFinanceCategory),
      transactionType: (transactionType != null
          ? transactionType.value
          : this.transactionType),
      pendingTransactionId: (pendingTransactionId != null
          ? pendingTransactionId.value
          : this.pendingTransactionId),
      categoryId: (categoryId != null ? categoryId.value : this.categoryId),
      category: (category != null ? category.value : this.category),
      location: (location != null ? location.value : this.location),
      paymentMeta:
          (paymentMeta != null ? paymentMeta.value : this.paymentMeta),
      accountOwner:
          (accountOwner != null ? accountOwner.value : this.accountOwner),
      name: (name != null ? name.value : this.name),
      originalDescription: (originalDescription != null
          ? originalDescription.value
          : this.originalDescription),
      accountId: (accountId != null ? accountId.value : this.accountId),
      amount: (amount != null ? amount.value : this.amount),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      unofficialCurrencyCode: (unofficialCurrencyCode != null
          ? unofficialCurrencyCode.value
          : this.unofficialCurrencyCode),
      date: (date != null ? date.value : this.date),
      pending: (pending != null ? pending.value : this.pending),
      transactionId:
          (transactionId != null ? transactionId.value : this.transactionId),
      merchantName:
          (merchantName != null ? merchantName.value : this.merchantName),
      checkNumber:
          (checkNumber != null ? checkNumber.value : this.checkNumber));
}