copyWith method
LongreadExerciseInputQuestionItem
copyWith({
- LongreadExerciseInputQuestionItemType? type,
- int? id,
- int? order,
- String? content,
- num? score,
- List<
LongreadMaterialAttachmentItem> ? attachments, - QuestionItemCorrectAnswer? correctAnswer,
- bool? autoEvaluation,
- String? recommendation,
- QuestionItemEvaluationBlock? input,
Implementation
LongreadExerciseInputQuestionItem copyWith({
enums.LongreadExerciseInputQuestionItemType? type,
int? id,
int? order,
String? content,
num? score,
List<LongreadMaterialAttachmentItem>? attachments,
QuestionItemCorrectAnswer? correctAnswer,
bool? autoEvaluation,
String? recommendation,
QuestionItemEvaluationBlock? input,
}) {
return LongreadExerciseInputQuestionItem(
type: type ?? this.type,
id: id ?? this.id,
order: order ?? this.order,
content: content ?? this.content,
score: score ?? this.score,
attachments: attachments ?? this.attachments,
correctAnswer: correctAnswer ?? this.correctAnswer,
autoEvaluation: autoEvaluation ?? this.autoEvaluation,
recommendation: recommendation ?? this.recommendation,
input: input ?? this.input,
);
}