addUserProperty static method

dynamic addUserProperty(
  1. String key,
  2. String value
)

Implementation

static addUserProperty(String key, String value) async {
  if(Platform.isIOS){
  _channel.invokeMethod(ADDUSERPROPERTIES, {
    'key': key,
    'value': value,
  });
  }else{
      var addValue = HashMap<String, Object>();
      addValue[key] = value;
     _channel.invokeMethod(PROPERTIES, addValue);

  }
}