copyWith method

LongreadExerciseInputQuestionItem copyWith({
  1. LongreadExerciseInputQuestionItemType? type,
  2. int? id,
  3. int? order,
  4. String? content,
  5. num? score,
  6. List<LongreadMaterialAttachmentItem>? attachments,
  7. QuestionItemCorrectAnswer? correctAnswer,
  8. bool? autoEvaluation,
  9. String? recommendation,
  10. 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,
  );
}