copyWithWrapped method

Category copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<String>? categoryGroupId,
  3. Wrapped<String>? name,
  4. Wrapped<bool>? hidden,
  5. Wrapped<String?>? originalCategoryGroupId,
  6. Wrapped<String?>? note,
  7. Wrapped<num>? budgeted,
  8. Wrapped<num>? activity,
  9. Wrapped<num>? balance,
  10. Wrapped<CategoryGoalType?>? goalType,
  11. Wrapped<DateTime?>? goalCreationMonth,
  12. Wrapped<num?>? goalTarget,
  13. Wrapped<DateTime?>? goalTargetMonth,
  14. Wrapped<int?>? goalPercentageComplete,
  15. Wrapped<int?>? goalMonthsToBudget,
  16. Wrapped<num?>? goalUnderFunded,
  17. Wrapped<num?>? goalOverallFunded,
  18. Wrapped<num?>? goalOverallLeft,
  19. Wrapped<bool>? deleted,
})

Implementation

Category copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<String>? categoryGroupId,
    Wrapped<String>? name,
    Wrapped<bool>? hidden,
    Wrapped<String?>? originalCategoryGroupId,
    Wrapped<String?>? note,
    Wrapped<num>? budgeted,
    Wrapped<num>? activity,
    Wrapped<num>? balance,
    Wrapped<enums.CategoryGoalType?>? goalType,
    Wrapped<DateTime?>? goalCreationMonth,
    Wrapped<num?>? goalTarget,
    Wrapped<DateTime?>? goalTargetMonth,
    Wrapped<int?>? goalPercentageComplete,
    Wrapped<int?>? goalMonthsToBudget,
    Wrapped<num?>? goalUnderFunded,
    Wrapped<num?>? goalOverallFunded,
    Wrapped<num?>? goalOverallLeft,
    Wrapped<bool>? deleted}) {
  return Category(
      id: (id != null ? id.value : this.id),
      categoryGroupId: (categoryGroupId != null
          ? categoryGroupId.value
          : this.categoryGroupId),
      name: (name != null ? name.value : this.name),
      hidden: (hidden != null ? hidden.value : this.hidden),
      originalCategoryGroupId: (originalCategoryGroupId != null
          ? originalCategoryGroupId.value
          : this.originalCategoryGroupId),
      note: (note != null ? note.value : this.note),
      budgeted: (budgeted != null ? budgeted.value : this.budgeted),
      activity: (activity != null ? activity.value : this.activity),
      balance: (balance != null ? balance.value : this.balance),
      goalType: (goalType != null ? goalType.value : this.goalType),
      goalCreationMonth: (goalCreationMonth != null
          ? goalCreationMonth.value
          : this.goalCreationMonth),
      goalTarget: (goalTarget != null ? goalTarget.value : this.goalTarget),
      goalTargetMonth: (goalTargetMonth != null
          ? goalTargetMonth.value
          : this.goalTargetMonth),
      goalPercentageComplete: (goalPercentageComplete != null
          ? goalPercentageComplete.value
          : this.goalPercentageComplete),
      goalMonthsToBudget: (goalMonthsToBudget != null
          ? goalMonthsToBudget.value
          : this.goalMonthsToBudget),
      goalUnderFunded: (goalUnderFunded != null
          ? goalUnderFunded.value
          : this.goalUnderFunded),
      goalOverallFunded: (goalOverallFunded != null
          ? goalOverallFunded.value
          : this.goalOverallFunded),
      goalOverallLeft: (goalOverallLeft != null
          ? goalOverallLeft.value
          : this.goalOverallLeft),
      deleted: (deleted != null ? deleted.value : this.deleted));
}