copyWith method

ScheduledSubTransaction copyWith({
  1. String? id,
  2. String? scheduledTransactionId,
  3. num? amount,
  4. String? memo,
  5. String? payeeId,
  6. String? categoryId,
  7. String? transferAccountId,
  8. bool? deleted,
})

Implementation

ScheduledSubTransaction copyWith(
    {String? id,
    String? scheduledTransactionId,
    num? amount,
    String? memo,
    String? payeeId,
    String? categoryId,
    String? transferAccountId,
    bool? deleted}) {
  return ScheduledSubTransaction(
      id: id ?? this.id,
      scheduledTransactionId:
          scheduledTransactionId ?? this.scheduledTransactionId,
      amount: amount ?? this.amount,
      memo: memo ?? this.memo,
      payeeId: payeeId ?? this.payeeId,
      categoryId: categoryId ?? this.categoryId,
      transferAccountId: transferAccountId ?? this.transferAccountId,
      deleted: deleted ?? this.deleted);
}