CourseTableCell typedef

CourseTableCell = ({String? classroomName, String courseName, double credits, int hours, int id, String number, int span})

Data for a single cell in the course table grid.

Implementation

typedef CourseTableCell = ({
  /// [CourseOfferings] primary key, for navigating to detail view.
  int id,

  /// [CourseOfferings.number].
  String number,

  /// Number of consecutive period rows this cell spans.
  int span,

  /// Localized course name.
  String courseName,

  /// Localized classroom name for this timeslot.
  String? classroomName,

  /// Number of credits for this course.
  double credits,

  /// Number of class hours per week.
  int hours,
});