copyWith method
SaveTransactionWithId
copyWith({
- String? id,
- String? accountId,
- DateTime? date,
- num? amount,
- String? payeeId,
- String? payeeName,
- String? categoryId,
- String? memo,
- SaveTransactionWithIdCleared? cleared,
- bool? approved,
- SaveTransactionWithIdFlagColor? flagColor,
- String? importId,
- 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);
}