copyWith method
BudgetSummary
copyWith({
- String? id,
- String? name,
- DateTime? lastModifiedOn,
- DateTime? firstMonth,
- DateTime? lastMonth,
- DateFormat? dateFormat,
- CurrencyFormat? currencyFormat,
- List<
Account> ? accounts,
Implementation
BudgetSummary copyWith(
{String? id,
String? name,
DateTime? lastModifiedOn,
DateTime? firstMonth,
DateTime? lastMonth,
DateFormat? dateFormat,
CurrencyFormat? currencyFormat,
List<Account>? accounts}) {
return BudgetSummary(
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,
accounts: accounts ?? this.accounts);
}