logBeginCheckout method
Future<void>
logBeginCheckout({
- double? value,
- String? currency,
- List<
AnalyticsEventItem> ? items, - String? coupon,
- Map<
String, Object> ? parameters, - AnalyticsCallOptions? callOptions,
inherited
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.
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,
);
}