logAddToWishlist method

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

Logs the standard add_to_wishlist event.

This event signifies that an item was added to a wishlist. Use this event to identify popular gift items in your app. Note: If you supply the value parameter, you must also supply the currency parameter so that revenue metrics can be computed accurately.

See: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html#ADD_TO_WISHLIST

Implementation

Future<void> logAddToWishlist({
  List<AnalyticsEventItem>? items,
  double? value,
  String? currency,
  Map<String, Object>? parameters,
  AnalyticsCallOptions? callOptions,
}) {
  _requireValueAndCurrencyTogether(value, currency);

  _assertParameterTypesAreCorrect(parameters);
  _assertItemsParameterTypesAreCorrect(items);

  return _delegate.logEvent(
    name: 'add_to_wishlist',
    parameters: filterOutNulls(<String, Object?>{
      _ITEMS: _marshalItems(items),
      _VALUE: value,
      _CURRENCY: currency,
      if (parameters != null) ...parameters,
    }),
    callOptions: callOptions,
  );
}