copyWithWrapped method
Transaction
copyWithWrapped({
- Wrapped<
TransactionPaymentChannel> ? paymentChannel, - Wrapped<
DateTime?> ? authorizedDate, - Wrapped<
DateTime?> ? authorizedDatetime, - Wrapped<
DateTime?> ? datetime, - Wrapped<
TransactionCode?> ? transactionCode, - Wrapped<
PersonalFinanceCategory?> ? personalFinanceCategory, - Wrapped<
TransactionTransactionType?> ? transactionType, - Wrapped<
String?> ? pendingTransactionId, - Wrapped<
String?> ? categoryId, - Wrapped<
List< ? category,String> ?> - Wrapped<
Location> ? location, - Wrapped<
PaymentMeta> ? paymentMeta, - Wrapped<
String?> ? accountOwner, - Wrapped<
String> ? name, - Wrapped<
String?> ? originalDescription, - Wrapped<
String> ? accountId, - Wrapped<
double> ? amount, - Wrapped<
String?> ? isoCurrencyCode, - Wrapped<
String?> ? unofficialCurrencyCode, - Wrapped<
DateTime> ? date, - Wrapped<
bool> ? pending, - Wrapped<
String> ? transactionId, - Wrapped<
String?> ? merchantName, - Wrapped<
String?> ? checkNumber,
Implementation
Transaction copyWithWrapped(
{Wrapped<enums.TransactionPaymentChannel>? paymentChannel,
Wrapped<DateTime?>? authorizedDate,
Wrapped<DateTime?>? authorizedDatetime,
Wrapped<DateTime?>? datetime,
Wrapped<enums.TransactionCode?>? transactionCode,
Wrapped<PersonalFinanceCategory?>? personalFinanceCategory,
Wrapped<enums.TransactionTransactionType?>? transactionType,
Wrapped<String?>? pendingTransactionId,
Wrapped<String?>? categoryId,
Wrapped<List<String>?>? category,
Wrapped<Location>? location,
Wrapped<PaymentMeta>? paymentMeta,
Wrapped<String?>? accountOwner,
Wrapped<String>? name,
Wrapped<String?>? originalDescription,
Wrapped<String>? accountId,
Wrapped<double>? amount,
Wrapped<String?>? isoCurrencyCode,
Wrapped<String?>? unofficialCurrencyCode,
Wrapped<DateTime>? date,
Wrapped<bool>? pending,
Wrapped<String>? transactionId,
Wrapped<String?>? merchantName,
Wrapped<String?>? checkNumber}) {
return Transaction(
paymentChannel: (paymentChannel != null
? paymentChannel.value
: this.paymentChannel),
authorizedDate: (authorizedDate != null
? authorizedDate.value
: this.authorizedDate),
authorizedDatetime: (authorizedDatetime != null
? authorizedDatetime.value
: this.authorizedDatetime),
datetime: (datetime != null ? datetime.value : this.datetime),
transactionCode: (transactionCode != null
? transactionCode.value
: this.transactionCode),
personalFinanceCategory: (personalFinanceCategory != null
? personalFinanceCategory.value
: this.personalFinanceCategory),
transactionType: (transactionType != null
? transactionType.value
: this.transactionType),
pendingTransactionId: (pendingTransactionId != null
? pendingTransactionId.value
: this.pendingTransactionId),
categoryId: (categoryId != null ? categoryId.value : this.categoryId),
category: (category != null ? category.value : this.category),
location: (location != null ? location.value : this.location),
paymentMeta:
(paymentMeta != null ? paymentMeta.value : this.paymentMeta),
accountOwner:
(accountOwner != null ? accountOwner.value : this.accountOwner),
name: (name != null ? name.value : this.name),
originalDescription: (originalDescription != null
? originalDescription.value
: this.originalDescription),
accountId: (accountId != null ? accountId.value : this.accountId),
amount: (amount != null ? amount.value : this.amount),
isoCurrencyCode: (isoCurrencyCode != null
? isoCurrencyCode.value
: this.isoCurrencyCode),
unofficialCurrencyCode: (unofficialCurrencyCode != null
? unofficialCurrencyCode.value
: this.unofficialCurrencyCode),
date: (date != null ? date.value : this.date),
pending: (pending != null ? pending.value : this.pending),
transactionId:
(transactionId != null ? transactionId.value : this.transactionId),
merchantName:
(merchantName != null ? merchantName.value : this.merchantName),
checkNumber:
(checkNumber != null ? checkNumber.value : this.checkNumber));
}