unregisterSuperProperty method

Future<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

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