logEarnVirtualCurrency method
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,
}) {
return logEvent(
name: 'earn_virtual_currency',
parameters: filterOutNulls(<String, dynamic>{
_VIRTUAL_CURRENCY_NAME: virtualCurrencyName,
_VALUE: value,
}),
);
}