isLoggedInProvider top-level property
final
Provider that returns whether there is a user currently logged in.
This is the same as checking if the value returned by currentUserProvider is non-null, but using this provider can help minimize rebuilds if you only need to know whether a user is logged-in or not.
Implementation
final isLoggedInProvider = Provider(
(ref) => ref.watch(currentUserProvider).maybeWhen(
data: (user) => user != null,
orElse: () => false,
),
);