copyWith method
BudgetDetail
copyWith({
- List<
Account> ? accounts, - List<
Payee> ? payees, - List<
PayeeLocation> ? payeeLocations, - List<
CategoryGroup> ? categoryGroups, - List<
Category> ? categories, - List<
MonthDetail> ? months, - List<
TransactionSummary> ? transactions, - List<
SubTransaction> ? subtransactions, - List<
ScheduledTransactionSummary> ? scheduledTransactions, - List<
ScheduledSubTransaction> ? scheduledSubtransactions, - String? id,
- String? name,
- DateTime? lastModifiedOn,
- DateTime? firstMonth,
- DateTime? lastMonth,
- DateFormat? dateFormat,
- CurrencyFormat? currencyFormat,
Implementation
BudgetDetail copyWith(
{List<Account>? accounts,
List<Payee>? payees,
List<PayeeLocation>? payeeLocations,
List<CategoryGroup>? categoryGroups,
List<Category>? categories,
List<MonthDetail>? months,
List<TransactionSummary>? transactions,
List<SubTransaction>? subtransactions,
List<ScheduledTransactionSummary>? scheduledTransactions,
List<ScheduledSubTransaction>? scheduledSubtransactions,
String? id,
String? name,
DateTime? lastModifiedOn,
DateTime? firstMonth,
DateTime? lastMonth,
DateFormat? dateFormat,
CurrencyFormat? currencyFormat}) {
return BudgetDetail(
accounts: accounts ?? this.accounts,
payees: payees ?? this.payees,
payeeLocations: payeeLocations ?? this.payeeLocations,
categoryGroups: categoryGroups ?? this.categoryGroups,
categories: categories ?? this.categories,
months: months ?? this.months,
transactions: transactions ?? this.transactions,
subtransactions: subtransactions ?? this.subtransactions,
scheduledTransactions:
scheduledTransactions ?? this.scheduledTransactions,
scheduledSubtransactions:
scheduledSubtransactions ?? this.scheduledSubtransactions,
id: id ?? this.id,
name: name ?? this.name,
lastModifiedOn: lastModifiedOn ?? this.lastModifiedOn,
firstMonth: firstMonth ?? this.firstMonth,
lastMonth: lastMonth ?? this.lastMonth,
dateFormat: dateFormat ?? this.dateFormat,
currencyFormat: currencyFormat ?? this.currencyFormat);
}