SyllabusDto typedef

SyllabusDto = ({String? email, int? enrolled, DateTime? lastUpdated, List<SyllabusSectionDto> sections, CourseType? type, int? withdrawn})

Syllabus details from the course syllabus page (教學大綱與進度).

Implementation

typedef SyllabusDto = ({
  // Header table (課程基本資料)

  /// Course type for graduation requirements (修).
  ///
  /// More accurate than course table types (必/選/通/輔).
  /// Uses symbols: ○, △, ☆, ●, ▲, ★
  CourseType? type,

  /// Number of enrolled students (人).
  int? enrolled,

  /// Number of withdrawn students (撤).
  int? withdrawn,

  // Syllabus table metadata (教學大綱與進度)

  /// Instructor's email address.
  String? email,

  /// Last updated timestamp (最後更新時間).
  DateTime? lastUpdated,

  /// Ordered content sections with source-derived titles.
  List<SyllabusSectionDto> sections,
});