logSpendVirtualCurrency method
Logs the standard spend_virtual_currency
event.
This event tracks the sale of virtual goods in your app and can help you identify which virtual goods are the most popular objects of purchase.
Implementation
Future<void> logSpendVirtualCurrency({
required String itemName,
required String virtualCurrencyName,
required num value,
}) {
return logEvent(
name: 'spend_virtual_currency',
parameters: filterOutNulls(<String, Object?>{
_ITEM_NAME: itemName,
_VIRTUAL_CURRENCY_NAME: virtualCurrencyName,
_VALUE: value,
}),
);
}