copyWith method

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

Implementation

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