copyWith method

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

Implementation

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