copyWithWrapped method

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

Implementation

BudgetDetail copyWithWrapped(
    {Wrapped<List<Account>?>? accounts,
    Wrapped<List<Payee>?>? payees,
    Wrapped<List<PayeeLocation>?>? payeeLocations,
    Wrapped<List<CategoryGroup>?>? categoryGroups,
    Wrapped<List<Category>?>? categories,
    Wrapped<List<MonthDetail>?>? months,
    Wrapped<List<TransactionSummary>?>? transactions,
    Wrapped<List<SubTransaction>?>? subtransactions,
    Wrapped<List<ScheduledTransactionSummary>?>? scheduledTransactions,
    Wrapped<List<ScheduledSubTransaction>?>? scheduledSubtransactions,
    Wrapped<String>? id,
    Wrapped<String>? name,
    Wrapped<DateTime?>? lastModifiedOn,
    Wrapped<DateTime?>? firstMonth,
    Wrapped<DateTime?>? lastMonth,
    Wrapped<DateFormat?>? dateFormat,
    Wrapped<CurrencyFormat?>? currencyFormat}) {
  return BudgetDetail(
      accounts: (accounts != null ? accounts.value : this.accounts),
      payees: (payees != null ? payees.value : this.payees),
      payeeLocations: (payeeLocations != null
          ? payeeLocations.value
          : this.payeeLocations),
      categoryGroups: (categoryGroups != null
          ? categoryGroups.value
          : this.categoryGroups),
      categories: (categories != null ? categories.value : this.categories),
      months: (months != null ? months.value : this.months),
      transactions:
          (transactions != null ? transactions.value : this.transactions),
      subtransactions: (subtransactions != null
          ? subtransactions.value
          : this.subtransactions),
      scheduledTransactions: (scheduledTransactions != null
          ? scheduledTransactions.value
          : this.scheduledTransactions),
      scheduledSubtransactions: (scheduledSubtransactions != null
          ? scheduledSubtransactions.value
          : this.scheduledSubtransactions),
      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));
}