CourseTableBlockObject typedef

CourseTableBlockObject = ({String classroomNameZh, String? courseNameZh, String courseNumber, DayOfWeek dayOfWeek, Period endSection, Period startSection})

Temporary UI contract for one renderable time block in the course table.

Implementation

typedef CourseTableBlockObject = ({
  /// [CourseOfferings.number].
  String courseNumber,

  /// [Courses.nameZh].
  String? courseNameZh,

  /// Classroom name for this block.
  String classroomNameZh,

  /// Weekday of this block.
  DayOfWeek dayOfWeek,

  /// Inclusive start slot of this block.
  Period startSection,

  /// Inclusive end slot of this block.
  Period endSection,
});