hasHoliday property

bool get hasHoliday

Implementation

bool get hasHoliday {
  for (final Course course in courses) {
    if (course.times.isEmpty) continue;
    for (final SectionTime section in course.times) {
      if (section.weekday == DateTime.saturday ||
          section.weekday == DateTime.sunday) return true;
    }
  }
  return false;
}