isConsentRequired property

Future<bool> isConsentRequired

Determine if consent is required for the user. The rules are (OR):

  • The user country is in the EU
  • The company is from the EU
  • The user country is unknown and the app has chosen to collect consent when unknown

Implementation

static Future<bool> get isConsentRequired async {
  final bool result = await _channel.invokeMethod('isConsentRequired');
  return result;
}