CourseContent constructor

const CourseContent({
  1. Key? key,
  2. required bool enableNotifyControl,
  3. required Course course,
  4. required TimeCode timeCode,
  5. required int weekday,
  6. CourseNotifyData? notifyData,
  7. bool autoNotifySave = true,
  8. CourseNotifyCallback? onNotifyClick,
  9. String courseNotifySaveKey = ApConstants.semesterLatest,
  10. bool enableAddToCalendar = true,
  11. String? androidResourceIcon,
  12. List<String> invisibleCourseCodes = const <String>[],
  13. ValueChanged<bool>? onVisibilityChanged,
})

Implementation

const CourseContent({
  Key? key,
  required this.enableNotifyControl,
  required this.course,
  required this.timeCode,
  required this.weekday,
  this.notifyData,
  this.autoNotifySave = true,
  this.onNotifyClick,
  this.courseNotifySaveKey = ApConstants.semesterLatest,
  this.enableAddToCalendar = true,
  this.androidResourceIcon,
  this.invisibleCourseCodes = const <String>[],
  this.onVisibilityChanged,
}) : super(key: key);