logLogin method

Future<void> logLogin({
  1. String? loginMethod,
  2. Map<String, Object>? parameters,
  3. AnalyticsCallOptions? callOptions,
})

Logs the standard login event.

Apps with a login feature can report this event to signify that a user has logged in.

See: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html#LOGIN

Implementation

Future<void> logLogin({
  String? loginMethod,
  Map<String, Object>? parameters,
  AnalyticsCallOptions? callOptions,
}) {
  _assertParameterTypesAreCorrect(parameters);

  return _delegate.logEvent(
    name: 'login',
    parameters: filterOutNulls(<String, Object?>{
      _METHOD: loginMethod,
      if (parameters != null) ...parameters,
    }),
    callOptions: callOptions,
  );
}