logEarnVirtualCurrency method
Future<void>
logEarnVirtualCurrency({
- required String virtualCurrencyName,
- required num value,
- Map<
String, Object> ? parameters, - AnalyticsCallOptions? callOptions,
inherited
Logs the standard earn_virtual_currency
event.
This event tracks the awarding of virtual currency in your app. Log this
along with logSpendVirtualCurrency
to better understand your virtual
economy.
Implementation
Future<void> logEarnVirtualCurrency({
required String virtualCurrencyName,
required num value,
Map<String, Object>? parameters,
AnalyticsCallOptions? callOptions,
}) {
_assertParameterTypesAreCorrect(parameters);
return _delegate.logEvent(
name: 'earn_virtual_currency',
parameters: filterOutNulls(<String, Object?>{
_VIRTUAL_CURRENCY_NAME: virtualCurrencyName,
_VALUE: value,
if (parameters != null) ...parameters,
}),
callOptions: callOptions,
);
}