copyWith method

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

Implementation

SaveTransaction copyWith(
    {String? accountId,
    DateTime? date,
    num? amount,
    String? payeeId,
    String? payeeName,
    String? categoryId,
    String? memo,
    enums.SaveTransactionCleared? cleared,
    bool? approved,
    enums.SaveTransactionFlagColor? flagColor,
    String? importId,
    List<SaveSubTransaction>? subtransactions}) {
  return SaveTransaction(
      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);
}