hasAcceptedCredentialTermsProvider top-level property
final
Provides whether the currently logged-in user has accepted the credential terms and conditions
Implementation
final hasAcceptedCredentialTermsProvider = Provider<bool>(
(ref) {
final user = ref.watch(currentUserProvider).valueOrNull?.id;
final acceptedCredentialTermsUsers =
ref.watch(acceptedCredentialTermsUsersProvider);
return acceptedCredentialTermsUsers.contains(user);
},
);