giveAllConsent static method

Future<String?> giveAllConsent()

Give consent for all features Should be call after Countly init

Implementation

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

  return result;
}