copyWith method

Implementation

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