copyWithWrapped method
SubTransaction
copyWithWrapped({
- Wrapped<
String> ? id, - Wrapped<
String> ? transactionId, - Wrapped<
num> ? amount, - Wrapped<
String?> ? memo, - Wrapped<
String?> ? payeeId, - Wrapped<
String?> ? payeeName, - Wrapped<
String?> ? categoryId, - Wrapped<
String?> ? categoryName, - Wrapped<
String?> ? transferAccountId, - Wrapped<
String?> ? transferTransactionId, - Wrapped<
bool> ? deleted,
Implementation
SubTransaction copyWithWrapped(
{Wrapped<String>? id,
Wrapped<String>? transactionId,
Wrapped<num>? amount,
Wrapped<String?>? memo,
Wrapped<String?>? payeeId,
Wrapped<String?>? payeeName,
Wrapped<String?>? categoryId,
Wrapped<String?>? categoryName,
Wrapped<String?>? transferAccountId,
Wrapped<String?>? transferTransactionId,
Wrapped<bool>? deleted}) {
return SubTransaction(
id: (id != null ? id.value : this.id),
transactionId:
(transactionId != null ? transactionId.value : this.transactionId),
amount: (amount != null ? amount.value : this.amount),
memo: (memo != null ? memo.value : this.memo),
payeeId: (payeeId != null ? payeeId.value : this.payeeId),
payeeName: (payeeName != null ? payeeName.value : this.payeeName),
categoryId: (categoryId != null ? categoryId.value : this.categoryId),
categoryName:
(categoryName != null ? categoryName.value : this.categoryName),
transferAccountId: (transferAccountId != null
? transferAccountId.value
: this.transferAccountId),
transferTransactionId: (transferTransactionId != null
? transferTransactionId.value
: this.transferTransactionId),
deleted: (deleted != null ? deleted.value : this.deleted));
}