unregisterSuperProperty method Null safety

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


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