copyWithWrapped method

TransactionSummary copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<DateTime>? date,
  3. Wrapped<num>? amount,
  4. Wrapped<String?>? memo,
  5. Wrapped<TransactionSummaryCleared>? cleared,
  6. Wrapped<bool>? approved,
  7. Wrapped<TransactionSummaryFlagColor?>? flagColor,
  8. Wrapped<String>? accountId,
  9. Wrapped<String?>? payeeId,
  10. Wrapped<String?>? categoryId,
  11. Wrapped<String?>? transferAccountId,
  12. Wrapped<String?>? transferTransactionId,
  13. Wrapped<String?>? matchedTransactionId,
  14. Wrapped<String?>? importId,
  15. Wrapped<String?>? importPayeeName,
  16. Wrapped<String?>? importPayeeNameOriginal,
  17. Wrapped<bool>? deleted,
})

Implementation

TransactionSummary copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<DateTime>? date,
    Wrapped<num>? amount,
    Wrapped<String?>? memo,
    Wrapped<enums.TransactionSummaryCleared>? cleared,
    Wrapped<bool>? approved,
    Wrapped<enums.TransactionSummaryFlagColor?>? flagColor,
    Wrapped<String>? accountId,
    Wrapped<String?>? payeeId,
    Wrapped<String?>? categoryId,
    Wrapped<String?>? transferAccountId,
    Wrapped<String?>? transferTransactionId,
    Wrapped<String?>? matchedTransactionId,
    Wrapped<String?>? importId,
    Wrapped<String?>? importPayeeName,
    Wrapped<String?>? importPayeeNameOriginal,
    Wrapped<bool>? deleted}) {
  return TransactionSummary(
      id: (id != null ? id.value : this.id),
      date: (date != null ? date.value : this.date),
      amount: (amount != null ? amount.value : this.amount),
      memo: (memo != null ? memo.value : this.memo),
      cleared: (cleared != null ? cleared.value : this.cleared),
      approved: (approved != null ? approved.value : this.approved),
      flagColor: (flagColor != null ? flagColor.value : this.flagColor),
      accountId: (accountId != null ? accountId.value : this.accountId),
      payeeId: (payeeId != null ? payeeId.value : this.payeeId),
      categoryId: (categoryId != null ? categoryId.value : this.categoryId),
      transferAccountId: (transferAccountId != null
          ? transferAccountId.value
          : this.transferAccountId),
      transferTransactionId: (transferTransactionId != null
          ? transferTransactionId.value
          : this.transferTransactionId),
      matchedTransactionId: (matchedTransactionId != null
          ? matchedTransactionId.value
          : this.matchedTransactionId),
      importId: (importId != null ? importId.value : this.importId),
      importPayeeName: (importPayeeName != null
          ? importPayeeName.value
          : this.importPayeeName),
      importPayeeNameOriginal: (importPayeeNameOriginal != null
          ? importPayeeNameOriginal.value
          : this.importPayeeNameOriginal),
      deleted: (deleted != null ? deleted.value : this.deleted));
}