activeRegistrationProvider top-level property

FutureProvider<UserRegistration?> activeRegistrationProvider
final

Provides the user's active registration (current class and semester).

Depends on userProfileProvider to ensure registration data is populated.

Implementation

final activeRegistrationProvider =
    FutureProvider.autoDispose<UserRegistration?>((ref) async {
      await ref.watch(userProfileProvider.future);
      return ref.watch(authRepositoryProvider).getActiveRegistration();
    });