removeAllConsent static method

Future<String?> removeAllConsent()

Implementation

static Future<String?> removeAllConsent() async {
  if (!_instance._countlyState.isInitialized) {
    String message = '"initWithConfig" must be called before "removeAllConsent"';
    log('removeAllConsent, $message', logLevel: LogLevel.ERROR);
    return message;
  }
  log('Calling "removeAllConsent"');
  final String? result = await _channel.invokeMethod('removeAllConsent');

  return result;
}