unset method Null safety

void unset(
  1. String prop
)

Permanently removes the property with the given name from the group's profile

  • prop name of a property to unset

Implementation

void unset(String prop) {
  if (_MixpanelHelper.isValidString(prop)) {
    _channel.invokeMethod<void>('groupUnsetProperty', <String, dynamic>{
      'token': this._token,
      'groupKey': this._groupKey,
      'groupID': this._groupID,
      'propertyName': prop
    });
  } else {
    developer.log('`group unset` failed: prop cannot be blank',
        name: 'Mixpanel');
  }
}