copyWithWrapped method
TransactionSummary
copyWithWrapped({
- Wrapped<
String> ? id, - Wrapped<
DateTime> ? date, - Wrapped<
num> ? amount, - Wrapped<
String?> ? memo, - Wrapped<
TransactionSummaryCleared> ? cleared, - Wrapped<
bool> ? approved, - Wrapped<
TransactionSummaryFlagColor?> ? flagColor, - Wrapped<
String> ? accountId, - Wrapped<
String?> ? payeeId, - Wrapped<
String?> ? categoryId, - Wrapped<
String?> ? transferAccountId, - Wrapped<
String?> ? transferTransactionId, - Wrapped<
String?> ? matchedTransactionId, - Wrapped<
String?> ? importId, - Wrapped<
String?> ? importPayeeName, - Wrapped<
String?> ? importPayeeNameOriginal, - Wrapped<
bool> ? deleted,
Implementation
TransactionSummary copyWithWrapped(
{Wrapped<String>? id,
Wrapped<DateTime>? date,
Wrapped<num>? amount,
Wrapped<String?>? memo,
Wrapped<enums.TransactionSummaryCleared>? cleared,
Wrapped<bool>? approved,
Wrapped<enums.TransactionSummaryFlagColor?>? flagColor,
Wrapped<String>? accountId,
Wrapped<String?>? payeeId,
Wrapped<String?>? categoryId,
Wrapped<String?>? transferAccountId,
Wrapped<String?>? transferTransactionId,
Wrapped<String?>? matchedTransactionId,
Wrapped<String?>? importId,
Wrapped<String?>? importPayeeName,
Wrapped<String?>? importPayeeNameOriginal,
Wrapped<bool>? deleted}) {
return TransactionSummary(
id: (id != null ? id.value : this.id),
date: (date != null ? date.value : this.date),
amount: (amount != null ? amount.value : this.amount),
memo: (memo != null ? memo.value : this.memo),
cleared: (cleared != null ? cleared.value : this.cleared),
approved: (approved != null ? approved.value : this.approved),
flagColor: (flagColor != null ? flagColor.value : this.flagColor),
accountId: (accountId != null ? accountId.value : this.accountId),
payeeId: (payeeId != null ? payeeId.value : this.payeeId),
categoryId: (categoryId != null ? categoryId.value : this.categoryId),
transferAccountId: (transferAccountId != null
? transferAccountId.value
: this.transferAccountId),
transferTransactionId: (transferTransactionId != null
? transferTransactionId.value
: this.transferTransactionId),
matchedTransactionId: (matchedTransactionId != null
? matchedTransactionId.value
: this.matchedTransactionId),
importId: (importId != null ? importId.value : this.importId),
importPayeeName: (importPayeeName != null
? importPayeeName.value
: this.importPayeeName),
importPayeeNameOriginal: (importPayeeNameOriginal != null
? importPayeeNameOriginal.value
: this.importPayeeNameOriginal),
deleted: (deleted != null ? deleted.value : this.deleted));
}