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)
from the database; refreshCourseTable keeps it current. A number the
database does not hold is looked up over the network and served without
being cached. Submitted syllabuses are fetched lazily and separately via
syllabusProvider. Resolves to null only when the course system reports
that the number does not exist.
Implementation
final courseOfferingProvider = FutureProvider.autoDispose
.family<CourseOfferingDetail?, String>((ref, number) {
return ref.watch(courseRepositoryProvider).getCourseOffering(number);
});