setUserId method

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

Sets the user id. Setting a null id removes the user id. callOptions are for web platform only.

Implementation

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