unregisterSuperProperty method
- 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()
propertyNamename 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');
}
}