copyWith method

BudgetSummary copyWith({
  1. String? id,
  2. String? name,
  3. DateTime? lastModifiedOn,
  4. DateTime? firstMonth,
  5. DateTime? lastMonth,
  6. DateFormat? dateFormat,
  7. CurrencyFormat? currencyFormat,
  8. 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);
}