logPostScore method
Future<void>
logPostScore({
- required int score,
- int? level,
- String? character,
- Map<
String, Object> ? parameters, - AnalyticsCallOptions? callOptions,
inherited
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.
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,
);
}