copyWith method

SubTransaction copyWith({
  1. String? id,
  2. String? transactionId,
  3. num? amount,
  4. String? memo,
  5. String? payeeId,
  6. String? payeeName,
  7. String? categoryId,
  8. String? categoryName,
  9. String? transferAccountId,
  10. String? transferTransactionId,
  11. bool? deleted,
})

Implementation

SubTransaction copyWith(
    {String? id,
    String? transactionId,
    num? amount,
    String? memo,
    String? payeeId,
    String? payeeName,
    String? categoryId,
    String? categoryName,
    String? transferAccountId,
    String? transferTransactionId,
    bool? deleted}) {
  return SubTransaction(
      id: id ?? this.id,
      transactionId: transactionId ?? this.transactionId,
      amount: amount ?? this.amount,
      memo: memo ?? this.memo,
      payeeId: payeeId ?? this.payeeId,
      payeeName: payeeName ?? this.payeeName,
      categoryId: categoryId ?? this.categoryId,
      categoryName: categoryName ?? this.categoryName,
      transferAccountId: transferAccountId ?? this.transferAccountId,
      transferTransactionId:
          transferTransactionId ?? this.transferTransactionId,
      deleted: deleted ?? this.deleted);
}