copyWithWrapped method

ScheduledTransactionDetail copyWithWrapped({
  1. Wrapped<String>? accountName,
  2. Wrapped<String?>? payeeName,
  3. Wrapped<String?>? categoryName,
  4. Wrapped<List<ScheduledSubTransaction>>? subtransactions,
  5. Wrapped<String>? id,
  6. Wrapped<DateTime>? dateFirst,
  7. Wrapped<DateTime>? dateNext,
  8. Wrapped<ScheduledTransactionDetailFrequency>? frequency,
  9. Wrapped<num>? amount,
  10. Wrapped<String?>? memo,
  11. Wrapped<ScheduledTransactionDetailFlagColor?>? flagColor,
  12. Wrapped<String>? accountId,
  13. Wrapped<String?>? payeeId,
  14. Wrapped<String?>? categoryId,
  15. Wrapped<String?>? transferAccountId,
  16. Wrapped<bool>? deleted,
})

Implementation

ScheduledTransactionDetail copyWithWrapped(
    {Wrapped<String>? accountName,
    Wrapped<String?>? payeeName,
    Wrapped<String?>? categoryName,
    Wrapped<List<ScheduledSubTransaction>>? subtransactions,
    Wrapped<String>? id,
    Wrapped<DateTime>? dateFirst,
    Wrapped<DateTime>? dateNext,
    Wrapped<enums.ScheduledTransactionDetailFrequency>? frequency,
    Wrapped<num>? amount,
    Wrapped<String?>? memo,
    Wrapped<enums.ScheduledTransactionDetailFlagColor?>? flagColor,
    Wrapped<String>? accountId,
    Wrapped<String?>? payeeId,
    Wrapped<String?>? categoryId,
    Wrapped<String?>? transferAccountId,
    Wrapped<bool>? deleted}) {
  return ScheduledTransactionDetail(
      accountName:
          (accountName != null ? accountName.value : this.accountName),
      payeeName: (payeeName != null ? payeeName.value : this.payeeName),
      categoryName:
          (categoryName != null ? categoryName.value : this.categoryName),
      subtransactions: (subtransactions != null
          ? subtransactions.value
          : this.subtransactions),
      id: (id != null ? id.value : this.id),
      dateFirst: (dateFirst != null ? dateFirst.value : this.dateFirst),
      dateNext: (dateNext != null ? dateNext.value : this.dateNext),
      frequency: (frequency != null ? frequency.value : this.frequency),
      amount: (amount != null ? amount.value : this.amount),
      memo: (memo != null ? memo.value : this.memo),
      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),
      deleted: (deleted != null ? deleted.value : this.deleted));
}