copyWith method

BudgetDetail copyWith({
  1. List<Account>? accounts,
  2. List<Payee>? payees,
  3. List<PayeeLocation>? payeeLocations,
  4. List<CategoryGroup>? categoryGroups,
  5. List<Category>? categories,
  6. List<MonthDetail>? months,
  7. List<TransactionSummary>? transactions,
  8. List<SubTransaction>? subtransactions,
  9. List<ScheduledTransactionSummary>? scheduledTransactions,
  10. List<ScheduledSubTransaction>? scheduledSubtransactions,
  11. String? id,
  12. String? name,
  13. DateTime? lastModifiedOn,
  14. DateTime? firstMonth,
  15. DateTime? lastMonth,
  16. DateFormat? dateFormat,
  17. 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);
}