copyWith method
LongreadExerciseCodingMaterialItem
copyWith({
- LongreadMaterialDiscriminator? discriminator,
- PublicationState? state,
- LongreadMaterialViewType? viewType,
- LongreadMaterialType? type,
- int? id,
- int? order,
- String? name,
- String? viewContent,
- LongreadMaterialEstimation? estimation,
- List<
String> ? reviewers, - List<
String> ? assignees, - List<
LongreadMaterialAttachmentItem> ? attachments, - String? backloggedAt,
- int? taskId,
- bool? isTrackingStudents,
- String? exerciseUrl,
- LongreadMaterialCoding? coding,
Implementation
LongreadExerciseCodingMaterialItem copyWith({
enums.LongreadMaterialDiscriminator? discriminator,
enums.PublicationState? state,
enums.LongreadMaterialViewType? viewType,
enums.LongreadMaterialType? type,
int? id,
int? order,
String? name,
String? viewContent,
LongreadMaterialEstimation? estimation,
List<String>? reviewers,
List<String>? assignees,
List<LongreadMaterialAttachmentItem>? attachments,
String? backloggedAt,
int? taskId,
bool? isTrackingStudents,
String? exerciseUrl,
LongreadMaterialCoding? coding,
}) {
return LongreadExerciseCodingMaterialItem(
discriminator: discriminator ?? this.discriminator,
state: state ?? this.state,
viewType: viewType ?? this.viewType,
type: type ?? this.type,
id: id ?? this.id,
order: order ?? this.order,
name: name ?? this.name,
viewContent: viewContent ?? this.viewContent,
estimation: estimation ?? this.estimation,
reviewers: reviewers ?? this.reviewers,
assignees: assignees ?? this.assignees,
attachments: attachments ?? this.attachments,
backloggedAt: backloggedAt ?? this.backloggedAt,
taskId: taskId ?? this.taskId,
isTrackingStudents: isTrackingStudents ?? this.isTrackingStudents,
exerciseUrl: exerciseUrl ?? this.exerciseUrl,
coding: coding ?? this.coding,
);
}