copyWithWrapped method

TaskExercise copyWithWrapped({
  1. Wrapped<int>? id,
  2. Wrapped<String>? name,
  3. Wrapped<TaskType>? type,
  4. Wrapped<num>? maxScore,
  5. Wrapped<String>? startDate,
  6. Wrapped<String>? deadline,
  7. Wrapped<String?>? timer,
  8. Wrapped<TaskExerciseActivity>? activity,
  9. Wrapped<List<TaskExerciseQuestionOrder>?>? questionOrders,
  10. Wrapped<bool?>? areQuestionsShuffled,
  11. Wrapped<int?>? quizId,
  12. Wrapped<String?>? mode,
  13. Wrapped<String?>? viewContent,
  14. Wrapped<String?>? exerciseUrl,
  15. Wrapped<List<TaskAttachment>?>? attachments,
  16. 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),
  );
}