logRemoveFromCart method

Future<void> logRemoveFromCart({
  1. String? currency,
  2. double? value,
  3. List<AnalyticsEventItem>? items,
  4. Map<String, Object>? parameters,
  5. AnalyticsCallOptions? callOptions,
})
inherited

Logs the standard remove_from_cart event.

This event signifies that an item(s) was removed from a cart.

See: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html#REMOVE_FROM_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,
  );
}