copyWith method
ScheduledTransactionDetail
copyWith({
- String? accountName,
- String? payeeName,
- String? categoryName,
- List<
ScheduledSubTransaction> ? subtransactions, - String? id,
- DateTime? dateFirst,
- DateTime? dateNext,
- ScheduledTransactionDetailFrequency? frequency,
- num? amount,
- String? memo,
- ScheduledTransactionDetailFlagColor? flagColor,
- String? accountId,
- String? payeeId,
- String? categoryId,
- String? transferAccountId,
- bool? deleted,
Implementation
ScheduledTransactionDetail copyWith(
{String? accountName,
String? payeeName,
String? categoryName,
List<ScheduledSubTransaction>? subtransactions,
String? id,
DateTime? dateFirst,
DateTime? dateNext,
enums.ScheduledTransactionDetailFrequency? frequency,
num? amount,
String? memo,
enums.ScheduledTransactionDetailFlagColor? flagColor,
String? accountId,
String? payeeId,
String? categoryId,
String? transferAccountId,
bool? deleted}) {
return ScheduledTransactionDetail(
accountName: accountName ?? this.accountName,
payeeName: payeeName ?? this.payeeName,
categoryName: categoryName ?? this.categoryName,
subtransactions: subtransactions ?? this.subtransactions,
id: id ?? this.id,
dateFirst: dateFirst ?? this.dateFirst,
dateNext: dateNext ?? this.dateNext,
frequency: frequency ?? this.frequency,
amount: amount ?? this.amount,
memo: memo ?? this.memo,
flagColor: flagColor ?? this.flagColor,
accountId: accountId ?? this.accountId,
payeeId: payeeId ?? this.payeeId,
categoryId: categoryId ?? this.categoryId,
transferAccountId: transferAccountId ?? this.transferAccountId,
deleted: deleted ?? this.deleted);
}