setUserCantGiveGDPRConsent static method

void setUserCantGiveGDPRConsent({
  1. required bool status,
})

If the user is under age of consent call this method with YES, otherwise you can call this method with false. If you dont call this method we assume the user is not under age of consent and you have to send whether the user accpeted or not the consent

Implementation

static void setUserCantGiveGDPRConsent({required bool status}) {
  if (Platform.isIOS && !initialized.value) return;
  _channel.invokeMethod('setUserCantGiveGDPRConsent', {
    'status': status,
  });
}