copyWith method

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

Implementation

ScheduledTransactionSummary copyWith(
    {String? id,
    DateTime? dateFirst,
    DateTime? dateNext,
    enums.ScheduledTransactionSummaryFrequency? frequency,
    num? amount,
    String? memo,
    enums.ScheduledTransactionSummaryFlagColor? flagColor,
    String? accountId,
    String? payeeId,
    String? categoryId,
    String? transferAccountId,
    bool? deleted}) {
  return ScheduledTransactionSummary(
      id: id ?? this.id,
      dateFirst: dateFirst ?? this.dateFirst,
      dateNext: dateNext ?? this.dateNext,
      frequency: frequency ?? this.frequency,
      amount: amount ?? this.amount,
      memo: memo ?? this.memo,
      flagColor: flagColor ?? this.flagColor,
      accountId: accountId ?? this.accountId,
      payeeId: payeeId ?? this.payeeId,
      categoryId: categoryId ?? this.categoryId,
      transferAccountId: transferAccountId ?? this.transferAccountId,
      deleted: deleted ?? this.deleted);
}