setOptOut method

Future<void> setOptOut(
  1. bool enabled
)

Web only. Disables tracking.

Set setOptOut to true to disable logging for a specific user. Set setOptOut to false to re-enable logging.

Implementation

Future<void> setOptOut(bool enabled) async {
  Map<String, bool> properties = {};
  properties['setOptOut'] = enabled;

  return await _channel.invokeMethod('setOptOut',
      {'instanceName': configuration.instanceName, 'properties': properties});
}