copyWithWrapped method

ScheduledTransactionSummary copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<DateTime>? dateFirst,
  3. Wrapped<DateTime>? dateNext,
  4. Wrapped<ScheduledTransactionSummaryFrequency>? frequency,
  5. Wrapped<num>? amount,
  6. Wrapped<String?>? memo,
  7. Wrapped<ScheduledTransactionSummaryFlagColor?>? flagColor,
  8. Wrapped<String>? accountId,
  9. Wrapped<String?>? payeeId,
  10. Wrapped<String?>? categoryId,
  11. Wrapped<String?>? transferAccountId,
  12. Wrapped<bool>? deleted,
})

Implementation

ScheduledTransactionSummary copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<DateTime>? dateFirst,
    Wrapped<DateTime>? dateNext,
    Wrapped<enums.ScheduledTransactionSummaryFrequency>? frequency,
    Wrapped<num>? amount,
    Wrapped<String?>? memo,
    Wrapped<enums.ScheduledTransactionSummaryFlagColor?>? flagColor,
    Wrapped<String>? accountId,
    Wrapped<String?>? payeeId,
    Wrapped<String?>? categoryId,
    Wrapped<String?>? transferAccountId,
    Wrapped<bool>? deleted}) {
  return ScheduledTransactionSummary(
      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));
}