copyWithWrapped method
TransactionStream
copyWithWrapped({
- Wrapped<
String> ? accountId, - Wrapped<
String> ? streamId, - Wrapped<
String> ? categoryId, - Wrapped<
List< ? category,String> > - Wrapped<
String> ? description, - Wrapped<
String?> ? merchantName, - Wrapped<
DateTime> ? firstDate, - Wrapped<
DateTime> ? lastDate, - Wrapped<
RecurringTransactionFrequency> ? frequency, - Wrapped<
List< ? transactionIds,String> > - Wrapped<
TransactionStreamAmount> ? averageAmount, - Wrapped<
TransactionStreamAmount> ? lastAmount, - Wrapped<
bool> ? isActive, - Wrapped<
TransactionStreamStatus> ? status, - Wrapped<
PersonalFinanceCategory?> ? personalFinanceCategory,
Implementation
TransactionStream copyWithWrapped(
{Wrapped<String>? accountId,
Wrapped<String>? streamId,
Wrapped<String>? categoryId,
Wrapped<List<String>>? category,
Wrapped<String>? description,
Wrapped<String?>? merchantName,
Wrapped<DateTime>? firstDate,
Wrapped<DateTime>? lastDate,
Wrapped<enums.RecurringTransactionFrequency>? frequency,
Wrapped<List<String>>? transactionIds,
Wrapped<TransactionStreamAmount>? averageAmount,
Wrapped<TransactionStreamAmount>? lastAmount,
Wrapped<bool>? isActive,
Wrapped<enums.TransactionStreamStatus>? status,
Wrapped<PersonalFinanceCategory?>? personalFinanceCategory}) {
return TransactionStream(
accountId: (accountId != null ? accountId.value : this.accountId),
streamId: (streamId != null ? streamId.value : this.streamId),
categoryId: (categoryId != null ? categoryId.value : this.categoryId),
category: (category != null ? category.value : this.category),
description:
(description != null ? description.value : this.description),
merchantName:
(merchantName != null ? merchantName.value : this.merchantName),
firstDate: (firstDate != null ? firstDate.value : this.firstDate),
lastDate: (lastDate != null ? lastDate.value : this.lastDate),
frequency: (frequency != null ? frequency.value : this.frequency),
transactionIds: (transactionIds != null
? transactionIds.value
: this.transactionIds),
averageAmount:
(averageAmount != null ? averageAmount.value : this.averageAmount),
lastAmount: (lastAmount != null ? lastAmount.value : this.lastAmount),
isActive: (isActive != null ? isActive.value : this.isActive),
status: (status != null ? status.value : this.status),
personalFinanceCategory: (personalFinanceCategory != null
? personalFinanceCategory.value
: this.personalFinanceCategory));
}