logLevelUp method
Future<void>
logLevelUp({
- required int level,
- String? character,
- Map<
String, Object> ? parameters, - AnalyticsCallOptions? callOptions,
inherited
Logs the standard level_up
event.
This event signifies that a player has leveled up in your gaming app. It can help you gauge the level distribution of your userbase and help you identify certain levels that are difficult to pass.
Implementation
Future<void> logLevelUp({
required int level,
String? character,
Map<String, Object>? parameters,
AnalyticsCallOptions? callOptions,
}) {
_assertParameterTypesAreCorrect(parameters);
return _delegate.logEvent(
name: 'level_up',
parameters: filterOutNulls(<String, Object?>{
_LEVEL: level,
_CHARACTER: character,
if (parameters != null) ...parameters,
}),
callOptions: callOptions,
);
}