logAddShippingInfo method

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

Logs the standard add_shipping_info event.

This event signifies that a user has submitted their shipping information to your app.

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

Implementation

Future<void> logAddShippingInfo({
  String? coupon,
  String? currency,
  double? value,
  String? shippingTier,
  List<AnalyticsEventItem>? items,
  Map<String, Object?>? parameters,
  AnalyticsCallOptions? callOptions,
}) {
  _assertParameterTypesAreCorrect(parameters);
  _assertItemsParameterTypesAreCorrect(items);

  return _delegate.logEvent(
    name: 'add_shipping_info',
    parameters: filterOutNulls({
      _COUPON: coupon,
      _CURRENCY: currency,
      _SHIPPING_TIER: shippingTier,
      _VALUE: value,
      _ITEMS: _marshalItems(items),
      if (parameters != null) ...parameters,
    }),
    callOptions: callOptions,
  );
}