unregisterSuperProperty method

void unregisterSuperProperty (
  1. String propertyName
)

Remove a single superProperty, so that it will not be sent with future calls to track().

If there is a superProperty registered with the given name, it will be permanently removed from the existing superProperties. To clear all superProperties, use clearSuperProperties()

  • propertyName name of the property to unregister

Implementation

void unregisterSuperProperty(String propertyName) {
  if (_MixpanelHelper.isValidString(propertyName)) {
    _channel.invokeMethod<void>('unregisterSuperProperty',
        <String, dynamic>{'propertyName': propertyName});
  } else {
    developer.log(
        '`unregisterSuperProperty` failed: propertyName cannot be blank',
        name: 'Mixpanel');
  }
}