getDaySchedule method Null safety
- int day
List of class sessions on the day
, returns an
empty list if there is none.
Implementation
List<ClassSession> getDaySchedule(int day) => scheduleMap[day] ?? [];
List of class sessions on the day
, returns an
empty list if there is none.
List<ClassSession> getDaySchedule(int day) => scheduleMap[day] ?? [];