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