userConsent method

Future<void> userConsent(
  1. String subjectToGDPR,
  2. String consent, {
  3. TCFVersion tcfVersion = TCFVersion.v2,
  4. int cmpSdkID = 0,
})

The GDPR status and consent, should match the IAB specifications.

Implementation

Future<void> userConsent(String subjectToGDPR, String consent,
    {TCFVersion tcfVersion = TCFVersion.v2, int cmpSdkID = 0}) async {
  _mapValue = await _channel.invokeMethod(
      'userConsent', [subjectToGDPR, consent, tcfVersion.value, cmpSdkID]);
}