logSpendVirtualCurrency method
Future<void>
logSpendVirtualCurrency({
- required String itemName,
- required String virtualCurrencyName,
- required num value,
- Map<
String, Object> ? parameters,
inherited
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,
Map<String, Object>? parameters,
}) {
_assertParameterTypesAreCorrect(parameters);
return _delegate.logEvent(
name: 'spend_virtual_currency',
parameters: filterOutNulls(<String, Object?>{
_ITEM_NAME: itemName,
_VIRTUAL_CURRENCY_NAME: virtualCurrencyName,
_VALUE: value,
if (parameters != null) ...parameters,
}),
);
}