giveAllConsent static method
Give consent for all features Should be call after Countly init returns the error or success message
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;
}