copyWithWrapped method
HybridTransaction
copyWithWrapped({
- Wrapped<
HybridTransactionType> ? type, - Wrapped<
String?> ? parentTransactionId, - Wrapped<
String> ? accountName, - Wrapped<
String?> ? payeeName, - Wrapped<
String?> ? categoryName, - Wrapped<
String> ? id, - Wrapped<
DateTime> ? date, - Wrapped<
num> ? amount, - Wrapped<
String?> ? memo, - Wrapped<
HybridTransactionCleared> ? cleared, - Wrapped<
bool> ? approved, - Wrapped<
HybridTransactionFlagColor?> ? 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
HybridTransaction copyWithWrapped(
{Wrapped<enums.HybridTransactionType>? type,
Wrapped<String?>? parentTransactionId,
Wrapped<String>? accountName,
Wrapped<String?>? payeeName,
Wrapped<String?>? categoryName,
Wrapped<String>? id,
Wrapped<DateTime>? date,
Wrapped<num>? amount,
Wrapped<String?>? memo,
Wrapped<enums.HybridTransactionCleared>? cleared,
Wrapped<bool>? approved,
Wrapped<enums.HybridTransactionFlagColor?>? 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 HybridTransaction(
type: (type != null ? type.value : this.type),
parentTransactionId: (parentTransactionId != null
? parentTransactionId.value
: this.parentTransactionId),
accountName:
(accountName != null ? accountName.value : this.accountName),
payeeName: (payeeName != null ? payeeName.value : this.payeeName),
categoryName:
(categoryName != null ? categoryName.value : this.categoryName),
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));
}