activeRegistrationProvider top-level property
final
Provides the user's active registration (current class and semester).
Watches the DB view directly — automatically updates when registration data changes (e.g., after login, profile fetch, or cache clear).
Implementation
final activeRegistrationProvider =
StreamProvider.autoDispose<UserRegistration?>((ref) {
return ref.watch(authRepositoryProvider).watchActiveRegistration();
});