copyWithWrapped method

Implementation

LongreadExerciseSingleChoiceQuestionitem copyWithWrapped({
  Wrapped<enums.LongreadExerciseSingleChoiceQuestionitemType>? type,
  Wrapped<int>? id,
  Wrapped<int>? order,
  Wrapped<String>? content,
  Wrapped<num>? score,
  Wrapped<List<LongreadMaterialAttachmentItem>>? attachments,
  Wrapped<List<QuestionItemOption>>? options,
  Wrapped<bool>? areOptionsShuffled,
  Wrapped<LongreadExerciseSingleChoiceQuestionitem$SingleChoice>?
  singleChoice,
}) {
  return LongreadExerciseSingleChoiceQuestionitem(
    type: (type != null ? type.value : this.type),
    id: (id != null ? id.value : this.id),
    order: (order != null ? order.value : this.order),
    content: (content != null ? content.value : this.content),
    score: (score != null ? score.value : this.score),
    attachments: (attachments != null ? attachments.value : this.attachments),
    options: (options != null ? options.value : this.options),
    areOptionsShuffled: (areOptionsShuffled != null
        ? areOptionsShuffled.value
        : this.areOptionsShuffled),
    singleChoice: (singleChoice != null
        ? singleChoice.value
        : this.singleChoice),
  );
}