setUserAttributes method

dynamic setUserAttributes(
  1. dynamic attributes
)

Implementation

setUserAttributes(dynamic attributes) {
  var _attrs = {};
  for (var key in attributes.keys) {
    if (attributes[key].runtimeType == DateTime) {
      _attrs['@CHKDATE_' + key] =
          attributes[key].millisecondsSinceEpoch.toString();
    } else {
      _attrs[key] = attributes[key];
    }
  }

  _channel.invokeMethod("setUserAttributes", _attrs);
}