unset method

void unset (
  1. String name
)

permanently removes the property with the given name from the user's profile

  • name name of a property to unset

Implementation

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