setUserProperty method

Future<void> setUserProperty(
  1. String name,
  2. String value
)

Implementation

Future<void> setUserProperty(
  String name,
  String value,
) async {
  logging.info(
    'setUserProperty() - "name": $name, "value": $value',
  );
  try {
    return await _instance.analytics
        .setUserProperty(name: name, value: value);
  } catch (error) {
    logging.severe('setUserProperty()', error);
    if (error is PlatformException) {
      throw AnalyticsDataSourceException.fromRdevException(
          error.toRdevException());
    }
    throw AnalyticsDataSourceException();
  }
}