copyWithWrapped method

QuestionItemOption copyWithWrapped({
  1. Wrapped<int>? id,
  2. Wrapped<String>? value,
  3. Wrapped<int>? order,
  4. Wrapped<bool>? isCorrect,
  5. Wrapped<String?>? recommendation,
})

Implementation

QuestionItemOption copyWithWrapped({
  Wrapped<int>? id,
  Wrapped<String>? value,
  Wrapped<int>? order,
  Wrapped<bool>? isCorrect,
  Wrapped<String?>? recommendation,
}) {
  return QuestionItemOption(
    id: (id != null ? id.value : this.id),
    value: (value != null ? value.value : this.value),
    order: (order != null ? order.value : this.order),
    isCorrect: (isCorrect != null ? isCorrect.value : this.isCorrect),
    recommendation: (recommendation != null
        ? recommendation.value
        : this.recommendation),
  );
}