setOptOut method
Disables tracking.
Set setOptOut to true to disable logging for a specific user. Set setOptOut to false to re-enable logging.
Also updates Configuration.optOut, as the iOS and Android SDKs' optOut setters update their configuration.
Implementation
Future<void> setOptOut(bool enabled) async {
configuration.optOut = enabled;
_elementInteractions?.setOptOut(enabled);
Map<String, bool> properties = {};
properties['setOptOut'] = enabled;
return await _channel.invokeMethod('setOptOut',
{'instanceName': configuration.instanceName, 'properties': properties});
}