setUserId method

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

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

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