copyWithCompanion method

CourseOfferingStudent copyWithCompanion(
  1. CourseOfferingStudentsCompanion data
)

Implementation

CourseOfferingStudent copyWithCompanion(
  CourseOfferingStudentsCompanion data,
) {
  return CourseOfferingStudent(
    courseOffering: data.courseOffering.present
        ? data.courseOffering.value
        : this.courseOffering,
    student: data.student.present ? data.student.value : this.student,
  );
}