optOutTracking method

void optOutTracking ()

Use this method to opt-out a user from tracking. Events and people updates that haven't been flushed yet will be deleted. Use flush() before calling this method if you want to send all the queues to Mixpanel before.

This method will also remove any user-related information from the device.

Implementation

void optOutTracking() {
  _channel.invokeMethod<void>('optOutTracking');
}