copyWith method

LongreadExerciseQuestionsMaterialItem copyWith({
  1. LongreadMaterialDiscriminator? discriminator,
  2. PublicationState? state,
  3. LongreadMaterialViewType? viewType,
  4. LongreadMaterialType? type,
  5. int? id,
  6. int? order,
  7. String? name,
  8. String? viewContent,
  9. LongreadMaterialEstimation? estimation,
  10. List<String>? reviewers,
  11. List<String>? assignees,
  12. List<LongreadMaterialAttachmentItem>? attachments,
  13. String? backloggedAt,
  14. int? taskId,
  15. bool? isTrackingStudents,
  16. LongreadExerciseQuestionsMode? mode,
  17. bool? areQuestionsShuffled,
  18. ExerciseQuestionsSettings? settings,
  19. int? quizId,
  20. List<LongreadExerciseQuestionItem>? questions,
})

Implementation

LongreadExerciseQuestionsMaterialItem copyWith({
  enums.LongreadMaterialDiscriminator? discriminator,
  enums.PublicationState? state,
  enums.LongreadMaterialViewType? viewType,
  enums.LongreadMaterialType? type,
  int? id,
  int? order,
  String? name,
  String? viewContent,
  LongreadMaterialEstimation? estimation,
  List<String>? reviewers,
  List<String>? assignees,
  List<LongreadMaterialAttachmentItem>? attachments,
  String? backloggedAt,
  int? taskId,
  bool? isTrackingStudents,
  enums.LongreadExerciseQuestionsMode? mode,
  bool? areQuestionsShuffled,
  ExerciseQuestionsSettings? settings,
  int? quizId,
  List<LongreadExerciseQuestionItem>? questions,
}) {
  return LongreadExerciseQuestionsMaterialItem(
    discriminator: discriminator ?? this.discriminator,
    state: state ?? this.state,
    viewType: viewType ?? this.viewType,
    type: type ?? this.type,
    id: id ?? this.id,
    order: order ?? this.order,
    name: name ?? this.name,
    viewContent: viewContent ?? this.viewContent,
    estimation: estimation ?? this.estimation,
    reviewers: reviewers ?? this.reviewers,
    assignees: assignees ?? this.assignees,
    attachments: attachments ?? this.attachments,
    backloggedAt: backloggedAt ?? this.backloggedAt,
    taskId: taskId ?? this.taskId,
    isTrackingStudents: isTrackingStudents ?? this.isTrackingStudents,
    mode: mode ?? this.mode,
    areQuestionsShuffled: areQuestionsShuffled ?? this.areQuestionsShuffled,
    settings: settings ?? this.settings,
    quizId: quizId ?? this.quizId,
    questions: questions ?? this.questions,
  );
}