CourseList constructor Null safety

const CourseList(
  1. {Key? key,
  2. required List<Course> courses,
  3. List<TimeCode>? timeCodes}
)

Implementation

const CourseList({
  Key? key,
  required this.courses,
  this.timeCodes,
}) : super(key: key);