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