getUserConsent static method
Gets the geofencing user consent state.
Returns true if the end user has given consent for geofencing, false
otherwise.
Note: User consent is independent of location permission. Geofencing requires both.
Implementation
static Future<bool> getUserConsent() {
return MapboxMapsFlutterPlatform.instance.geofencing.consent;
}