copyWith method
LongreadExerciseSingleChoiceQuestionitem
copyWith({
- LongreadExerciseSingleChoiceQuestionitemType? type,
- int? id,
- int? order,
- String? content,
- num? score,
- List<
LongreadMaterialAttachmentItem> ? attachments, - List<
QuestionItemOption> ? options, - bool? areOptionsShuffled,
- LongreadExerciseSingleChoiceQuestionitem$SingleChoice? singleChoice,
Implementation
LongreadExerciseSingleChoiceQuestionitem copyWith({
enums.LongreadExerciseSingleChoiceQuestionitemType? type,
int? id,
int? order,
String? content,
num? score,
List<LongreadMaterialAttachmentItem>? attachments,
List<QuestionItemOption>? options,
bool? areOptionsShuffled,
LongreadExerciseSingleChoiceQuestionitem$SingleChoice? singleChoice,
}) {
return LongreadExerciseSingleChoiceQuestionitem(
type: type ?? this.type,
id: id ?? this.id,
order: order ?? this.order,
content: content ?? this.content,
score: score ?? this.score,
attachments: attachments ?? this.attachments,
options: options ?? this.options,
areOptionsShuffled: areOptionsShuffled ?? this.areOptionsShuffled,
singleChoice: singleChoice ?? this.singleChoice,
);
}