logViewItemList method

Future<void> logViewItemList({
  1. List<AnalyticsEventItem>? items,
  2. String? itemListId,
  3. String? itemListName,
  4. Map<String, Object>? parameters,
})
inherited

Logs the standard view_item_list event.

Log this event when the user has been presented with a list of items of a certain category.

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

Implementation

Future<void> logViewItemList({
  List<AnalyticsEventItem>? items,
  String? itemListId,
  String? itemListName,
  Map<String, Object>? parameters,
}) {
  _assertParameterTypesAreCorrect(parameters);
  _assertItemsParameterTypesAreCorrect(items);

  return _delegate.logEvent(
    name: 'view_item_list',
    parameters: filterOutNulls(<String, Object?>{
      _ITEMS: _marshalItems(items),
      _ITEM_LIST_ID: itemListId,
      _ITEM_LIST_NAME: itemListName,
      if (parameters != null) ...parameters,
    }),
  );
}