copyWithWrapped method

BudgetSummary copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<String>? name,
  3. Wrapped<DateTime?>? lastModifiedOn,
  4. Wrapped<DateTime?>? firstMonth,
  5. Wrapped<DateTime?>? lastMonth,
  6. Wrapped<DateFormat?>? dateFormat,
  7. Wrapped<CurrencyFormat?>? currencyFormat,
  8. Wrapped<List<Account>?>? accounts,
})

Implementation

BudgetSummary copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<String>? name,
    Wrapped<DateTime?>? lastModifiedOn,
    Wrapped<DateTime?>? firstMonth,
    Wrapped<DateTime?>? lastMonth,
    Wrapped<DateFormat?>? dateFormat,
    Wrapped<CurrencyFormat?>? currencyFormat,
    Wrapped<List<Account>?>? accounts}) {
  return BudgetSummary(
      id: (id != null ? id.value : this.id),
      name: (name != null ? name.value : this.name),
      lastModifiedOn: (lastModifiedOn != null
          ? lastModifiedOn.value
          : this.lastModifiedOn),
      firstMonth: (firstMonth != null ? firstMonth.value : this.firstMonth),
      lastMonth: (lastMonth != null ? lastMonth.value : this.lastMonth),
      dateFormat: (dateFormat != null ? dateFormat.value : this.dateFormat),
      currencyFormat: (currencyFormat != null
          ? currencyFormat.value
          : this.currencyFormat),
      accounts: (accounts != null ? accounts.value : this.accounts));
}