copyWithWrapped method
LongreadExerciseMultipleChoiceQuestionItem
copyWithWrapped({
- Wrapped<
LongreadExerciseMultipleChoiceQuestionItemType> ? type, - Wrapped<
int> ? id, - Wrapped<
int> ? order, - Wrapped<
String> ? content, - Wrapped<
num> ? score, - Wrapped<
List< ? attachments,LongreadMaterialAttachmentItem> > - Wrapped<
List< ? options,QuestionItemOption> > - Wrapped<
bool> ? areOptionsShuffled, - Wrapped<
LongreadExerciseMultipleChoiceQuestionItem$MultipleChoice> ? multipleChoice,
Implementation
LongreadExerciseMultipleChoiceQuestionItem copyWithWrapped({
Wrapped<enums.LongreadExerciseMultipleChoiceQuestionItemType>? 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<LongreadExerciseMultipleChoiceQuestionItem$MultipleChoice>?
multipleChoice,
}) {
return LongreadExerciseMultipleChoiceQuestionItem(
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),
multipleChoice: (multipleChoice != null
? multipleChoice.value
: this.multipleChoice),
);
}