The following code explains how you should use the R89SDK.shouldDisplayPrivacyOptions
and the R89SDK.reOpenConsent()
functions.
This is intended to provide the user his rights of modifications of his choice.
Widget build(BuildContext context) { ... FilledButton( style: ButtonStyle( backgroundColor: WidgetStateProperty.all(Colors.redAccent)), onPressed: () => R89SDK.reOpenConsent(), child: const Text('Reopen concent')), ... }
Resetting should only be used when testing to re-display cmp on startup.
R89SDK.resetConsent()