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