copyWith method

LongreadExerciseCodingMaterialItem copyWith({
  1. LongreadMaterialDiscriminator? discriminator,
  2. PublicationState? state,
  3. LongreadMaterialViewType? viewType,
  4. LongreadMaterialType? type,
  5. int? id,
  6. int? order,
  7. String? name,
  8. String? viewContent,
  9. LongreadMaterialEstimation? estimation,
  10. List<String>? reviewers,
  11. List<String>? assignees,
  12. List<LongreadMaterialAttachmentItem>? attachments,
  13. String? backloggedAt,
  14. int? taskId,
  15. bool? isTrackingStudents,
  16. String? exerciseUrl,
  17. 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,
  );
}