copyWith method

TaskByIdResponse copyWith({
  1. int? id,
  2. TaskType? type,
  3. TaskState? state,
  4. num? score,
  5. TaskScoreSkillLevel? scoreSkillLevel,
  6. bool? isSkillLevelEnabled,
  7. bool? isLateDaysEnabled,
  8. num? extraScore,
  9. String? createdAt,
  10. String? startedAt,
  11. String? submitAt,
  12. String? rejectAt,
  13. String? evaluateAt,
  14. String? deadline,
  15. int? lateDays,
  16. TaskExercise? exercise,
  17. TaskCourse? course,
  18. TaskCourseTheme? theme,
  19. TaskLongread? longread,
  20. CurrentStudentResponse? student,
  21. TaskReviewer? reviewer,
  22. TaskSolution? solution,
  23. List<TaskScoresItem>? scores,
  24. QuizSessionId? quizSessionId,
  25. TaskEvaluatedAttemptId? evaluatedAttemptId,
  26. TaskCurrentAttemptId? currentAttemptId,
  27. TaskLastAttemptId? lastAttemptId,
})

Implementation

TaskByIdResponse copyWith({
  int? id,
  enums.TaskType? type,
  enums.TaskState? state,
  num? score,
  enums.TaskScoreSkillLevel? scoreSkillLevel,
  bool? isSkillLevelEnabled,
  bool? isLateDaysEnabled,
  num? extraScore,
  String? createdAt,
  String? startedAt,
  String? submitAt,
  String? rejectAt,
  String? evaluateAt,
  String? deadline,
  int? lateDays,
  TaskExercise? exercise,
  TaskCourse? course,
  TaskCourseTheme? theme,
  TaskLongread? longread,
  CurrentStudentResponse? student,
  TaskReviewer? reviewer,
  TaskSolution? solution,
  List<TaskScoresItem>? scores,
  QuizSessionId? quizSessionId,
  TaskEvaluatedAttemptId? evaluatedAttemptId,
  TaskCurrentAttemptId? currentAttemptId,
  TaskLastAttemptId? lastAttemptId,
}) {
  return TaskByIdResponse(
    id: id ?? this.id,
    type: type ?? this.type,
    state: state ?? this.state,
    score: score ?? this.score,
    scoreSkillLevel: scoreSkillLevel ?? this.scoreSkillLevel,
    isSkillLevelEnabled: isSkillLevelEnabled ?? this.isSkillLevelEnabled,
    isLateDaysEnabled: isLateDaysEnabled ?? this.isLateDaysEnabled,
    extraScore: extraScore ?? this.extraScore,
    createdAt: createdAt ?? this.createdAt,
    startedAt: startedAt ?? this.startedAt,
    submitAt: submitAt ?? this.submitAt,
    rejectAt: rejectAt ?? this.rejectAt,
    evaluateAt: evaluateAt ?? this.evaluateAt,
    deadline: deadline ?? this.deadline,
    lateDays: lateDays ?? this.lateDays,
    exercise: exercise ?? this.exercise,
    course: course ?? this.course,
    theme: theme ?? this.theme,
    longread: longread ?? this.longread,
    student: student ?? this.student,
    reviewer: reviewer ?? this.reviewer,
    solution: solution ?? this.solution,
    scores: scores ?? this.scores,
    quizSessionId: quizSessionId ?? this.quizSessionId,
    evaluatedAttemptId: evaluatedAttemptId ?? this.evaluatedAttemptId,
    currentAttemptId: currentAttemptId ?? this.currentAttemptId,
    lastAttemptId: lastAttemptId ?? this.lastAttemptId,
  );
}