logPostScore method

Future<void> logPostScore({
  1. required int score,
  2. int? level,
  3. String? character,
  4. Map<String, Object>? parameters,
  5. AnalyticsCallOptions? callOptions,
})

Logs the standard post_score event.

Log this event when the user posts a score in your gaming app. This event can help you understand how users are actually performing in your game and it can help you correlate high scores with certain audiences or behaviors.

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

Implementation

Future<void> logPostScore({
  required int score,
  int? level,
  String? character,
  Map<String, Object>? parameters,
  AnalyticsCallOptions? callOptions,
}) {
  _assertParameterTypesAreCorrect(parameters);

  return _delegate.logEvent(
    name: 'post_score',
    parameters: filterOutNulls(<String, Object?>{
      _SCORE: score,
      _LEVEL: level,
      _CHARACTER: character,
      if (parameters != null) ...parameters,
    }),
    callOptions: callOptions,
  );
}