courseOfferingProvider top-level property
final
Provides the detailed data for a single course offering, keyed by its course number (課號).
Reads composed offering detail (overview + schedule + teachers + classes)
directly from the database; refreshCourseTable keeps it current. No
network fetch — a teacher's syllabus is fetched lazily and separately via
syllabusProvider. Emits null until the offering exists.
Implementation
final courseOfferingProvider = StreamProvider.autoDispose
.family<CourseOfferingDetail?, String>((ref, number) {
return ref.watch(courseRepositoryProvider).watchCourseOffering(number);
});