Course constructor
const
Course({
- required String id,
- @Default(null) String? v,
- required String name,
- @Default('') String description,
- required List<
Event> schedule, - required List<
Assignment> assignments, - required List<
Test> tests, - required CourseStatus status,
- required List<
DateTime> statusChanges, - @Default(null) Object? attachment,
Implementation
const factory Course({
required String id,
@Default(null) String? v,
required String name,
@Default('') String description,
required List<Event> schedule,
required List<Assignment> assignments,
required List<Test> tests,
required CourseStatus status,
required List<DateTime> statusChanges,
@Default(null) Object? attachment,
}) = _Course;