features/legal/legal library

Classes

CredentialTermsScreen

Constants

acceptedCredentialTermsUsersPrefKey → const String

Properties

acceptedCredentialTermsUsersProvider StateNotifierProvider<PreferenceNotifier<List<String>>, List<String>>
Provides the list of users who have accepted the credential terms and conditions
final
hasAcceptedCredentialTermsProvider Provider<bool>
Provides whether the currently logged-in user has accepted the credential terms and conditions
final

Functions

acceptCredentialTerms(BuildContext context, {required bool hasAcceptedMarketingOutreach}) Future<bool>
Record that the given user has accepted the credential terms.
addStringToPrefList(BuildContext context, {required PreferenceStringListProvider provider, required String value}) Future<bool>
Add a string value to a string list preference
clearAllAcceptedCredentialTermsUsers(BuildContext context) Future<bool>
Clear all users who accepted the credential terms and conditions
declineCredentialTerms(BuildContext context, [AuthUser<OAuthToken>? authUser]) Future<bool>
Remove the given user from the list of accepted credential terms users.
removeStringFromPrefList(BuildContext context, {required PreferenceStringListProvider provider, required String value}) Future<bool>
Remove a string value from a string list preference

Typedefs

PreferenceStringListProvider = StateNotifierProvider<PreferenceNotifier<List<String>>, List<String>>
Type for a state notifier provider that uses a string list preference as its notifier.