userProfileProvider top-level property

FutureProvider<User?> userProfileProvider
final

Provides the current user's profile.

Returns null if not logged in. Automatically fetches full profile if stale.

Implementation

final userProfileProvider = FutureProvider.autoDispose<User?>((ref) {
  return ref.watch(authRepositoryProvider).getUser();
});