isUnderGPR method
Checks whether the user is under the jurisdiction of the General Data Protection Regulation (GDPR). Returns a Future
Implementation
Future<bool> isUnderGPR() async {
final preferences = AsyncPreferences();
// Check if the 'IABTCF_gdprApplies' preference is set to 1 (indicating GDPR applies).
return await preferences.getInt('IABTCF_gdprApplies') == 1;
}