logLevelEnd method

Future<void> logLevelEnd({
  1. required String levelName,
  2. int? success,
  3. Map<String, Object?>? parameters,
  4. AnalyticsCallOptions? callOptions,
})

Implementation

Future<void> logLevelEnd({
  required String levelName,
  int? success,
  Map<String, Object?>? parameters,
  AnalyticsCallOptions? callOptions,
}) {
  _assertParameterTypesAreCorrect(parameters);

  return _delegate.logEvent(
    name: 'level_end',
    parameters: filterOutNulls(<String, Object?>{
      _LEVEL_NAME: levelName,
      _SUCCESS: success,
      if (parameters != null) ...parameters,
    }),
    callOptions: callOptions,
  );
}