copyWith method

SaveTransactionWithId copyWith({
  1. String? id,
  2. String? accountId,
  3. DateTime? date,
  4. num? amount,
  5. String? payeeId,
  6. String? payeeName,
  7. String? categoryId,
  8. String? memo,
  9. SaveTransactionWithIdCleared? cleared,
  10. bool? approved,
  11. SaveTransactionWithIdFlagColor? flagColor,
  12. String? importId,
  13. List<SaveSubTransaction>? subtransactions,
})

Implementation

SaveTransactionWithId copyWith(
    {String? id,
    String? accountId,
    DateTime? date,
    num? amount,
    String? payeeId,
    String? payeeName,
    String? categoryId,
    String? memo,
    enums.SaveTransactionWithIdCleared? cleared,
    bool? approved,
    enums.SaveTransactionWithIdFlagColor? flagColor,
    String? importId,
    List<SaveSubTransaction>? subtransactions}) {
  return SaveTransactionWithId(
      id: id ?? this.id,
      accountId: accountId ?? this.accountId,
      date: date ?? this.date,
      amount: amount ?? this.amount,
      payeeId: payeeId ?? this.payeeId,
      payeeName: payeeName ?? this.payeeName,
      categoryId: categoryId ?? this.categoryId,
      memo: memo ?? this.memo,
      cleared: cleared ?? this.cleared,
      approved: approved ?? this.approved,
      flagColor: flagColor ?? this.flagColor,
      importId: importId ?? this.importId,
      subtransactions: subtransactions ?? this.subtransactions);
}