logRemoveFromCart method
Future<void>
logRemoveFromCart({
- String? currency,
- double? value,
- List<
AnalyticsEventItem> ? items, - Map<
String, Object> ? parameters, - AnalyticsCallOptions? callOptions,
Logs the standard remove_from_cart
event.
This event signifies that an item(s) was removed from a cart.
Implementation
Future<void> logRemoveFromCart({
String? currency,
double? value,
List<AnalyticsEventItem>? items,
Map<String, Object>? parameters,
AnalyticsCallOptions? callOptions,
}) {
_requireValueAndCurrencyTogether(value, currency);
_assertParameterTypesAreCorrect(parameters);
_assertItemsParameterTypesAreCorrect(items);
return _delegate.logEvent(
name: 'remove_from_cart',
parameters: filterOutNulls(<String, Object?>{
_CURRENCY: currency,
_VALUE: value,
_ITEMS: _marshalItems(items),
if (parameters != null) ...parameters,
}),
callOptions: callOptions,
);
}