logBeginCheckout method

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

Logs the standard begin_checkout event.

This event signifies that a user has begun the process of checking out. 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#BEGIN_CHECKOUT

Implementation

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

  _assertParameterTypesAreCorrect(parameters);
  _assertItemsParameterTypesAreCorrect(items);

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