consents property
Retrieves the current consent preferences stored in the Consent extension Output example: {"consents": {"collect": {"val": "y"}}}
Implementation
static Future<Map<String, dynamic>> get consents => _channel
.invokeMethod<Map<dynamic, dynamic>>('getConsents')
.then((value) => Map<String, dynamic>.from(value ?? {}));