copyWith method
TaskByIdResponse
copyWith({
- int? id,
- TaskType? type,
- TaskState? state,
- num? score,
- 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,
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,
);
}