setUserId method

Future<void> setUserId({
  1. String? id,
  2. AnalyticsCallOptions? callOptions,
})

Sets the user ID property.

Setting a null id removes the user id.

This feature must be used in accordance with Google's Privacy Policy.

Implementation

Future<void> setUserId({
  String? id,
  AnalyticsCallOptions? callOptions,
}) async {
  await _delegate.setUserId(id: id, callOptions: callOptions);
}