logViewItemList method

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

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,
}) {
  return logEvent(
    name: 'view_item_list',
    parameters: filterOutNulls(<String, Object?>{
      _ITEMS: items,
      _ITEM_LIST_ID: itemListId,
      _ITEM_LIST_NAME: itemListName,
    }),
  );
}