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