acceptNda function
- BuildContext context
Record that the given user has accepted the non-disclosure agreement.
The user will be added to the list of accepted NDA users.
Implementation
Future<bool> acceptNda(BuildContext context) {
final container = ProviderScope.containerOf(context);
final user = container.read(currentUserProvider).valueOrNull?.id;
assert(user != null);
return addStringToPrefList(
context,
provider: acceptedNdaUsersProvider,
value: user!,
);
}