logViewCart method
Future<void>
logViewCart({
- String? currency,
- double? value,
- List<
AnalyticsEventItem> ? items, - Map<
String, Object?> ? parameters, - AnalyticsCallOptions? callOptions,
Logs the standard view_cart
event.
This event signifies that a user has viewed their cart. Use this to analyze your purchase funnel.
Implementation
Future<void> logViewCart({
String? currency,
double? value,
List<AnalyticsEventItem>? items,
Map<String, Object?>? parameters,
AnalyticsCallOptions? callOptions,
}) {
_assertParameterTypesAreCorrect(parameters);
_assertItemsParameterTypesAreCorrect(items);
return _delegate.logEvent(
name: 'view_cart',
parameters: filterOutNulls(<String, Object?>{
_CURRENCY: currency,
_VALUE: value,
_ITEMS: _marshalItems(items),
if (parameters != null) ...parameters,
}),
callOptions: callOptions,
);
}