CourseTableSummaryObject typedef

CourseTableSummaryObject = ({List<CourseTableBlockObject> courses, Period earliestStartSection, bool hasAmCourse, bool hasNCourse, bool hasNightCourse, bool hasPmCourse, bool hasSatCourse, bool hasSunCourse, bool hasWeekdayCourse, Period latestEndSection, Semester semester, double totalCredits, int totalHours})

Implementation

typedef CourseTableSummaryObject = ({
  // The semester this course table belongs to.
  Semester semester,

  /// Course blocks to render in the table.
  List<CourseTableBlockObject> courses,

  /// Whether the table has courses in the morning (before 12:00).
  bool hasAmCourse,
  bool hasNCourse,
  bool hasPmCourse,
  bool hasNightCourse,
  Period earliestStartSection,
  Period latestEndSection,
  bool hasWeekdayCourse,
  bool hasSatCourse,
  bool hasSunCourse,

  /// Total credits of all courses in the table.
  double totalCredits,

  /// Total hours of all courses in the table.
  int totalHours,
});