copyWithWrapped method
TaskExercise
copyWithWrapped({
- Wrapped<
int> ? id, - Wrapped<
String> ? name, - Wrapped<
TaskType> ? type, - Wrapped<
num> ? maxScore, - Wrapped<
String> ? startDate, - Wrapped<
String> ? deadline, - Wrapped<
String?> ? timer, - Wrapped<
TaskExerciseActivity> ? activity, - Wrapped<
List< ? questionOrders,TaskExerciseQuestionOrder> ?> - Wrapped<
bool?> ? areQuestionsShuffled, - Wrapped<
int?> ? quizId, - Wrapped<
String?> ? mode, - Wrapped<
String?> ? viewContent, - Wrapped<
String?> ? exerciseUrl, - Wrapped<
List< ? attachments,TaskAttachment> ?> - Wrapped<
ExerciseQuestionsSettings?> ? settings,
Implementation
TaskExercise copyWithWrapped({
Wrapped<int>? id,
Wrapped<String>? name,
Wrapped<enums.TaskType>? type,
Wrapped<num>? maxScore,
Wrapped<String>? startDate,
Wrapped<String>? deadline,
Wrapped<String?>? timer,
Wrapped<TaskExerciseActivity>? activity,
Wrapped<List<TaskExerciseQuestionOrder>?>? questionOrders,
Wrapped<bool?>? areQuestionsShuffled,
Wrapped<int?>? quizId,
Wrapped<String?>? mode,
Wrapped<String?>? viewContent,
Wrapped<String?>? exerciseUrl,
Wrapped<List<TaskAttachment>?>? attachments,
Wrapped<ExerciseQuestionsSettings?>? settings,
}) {
return TaskExercise(
id: (id != null ? id.value : this.id),
name: (name != null ? name.value : this.name),
type: (type != null ? type.value : this.type),
maxScore: (maxScore != null ? maxScore.value : this.maxScore),
startDate: (startDate != null ? startDate.value : this.startDate),
deadline: (deadline != null ? deadline.value : this.deadline),
timer: (timer != null ? timer.value : this.timer),
activity: (activity != null ? activity.value : this.activity),
questionOrders: (questionOrders != null
? questionOrders.value
: this.questionOrders),
areQuestionsShuffled: (areQuestionsShuffled != null
? areQuestionsShuffled.value
: this.areQuestionsShuffled),
quizId: (quizId != null ? quizId.value : this.quizId),
mode: (mode != null ? mode.value : this.mode),
viewContent: (viewContent != null ? viewContent.value : this.viewContent),
exerciseUrl: (exerciseUrl != null ? exerciseUrl.value : this.exerciseUrl),
attachments: (attachments != null ? attachments.value : this.attachments),
settings: (settings != null ? settings.value : this.settings),
);
}