logSelectItem method

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

Logs the standard select_item event.

This event signifies that an item was selected by a user from a list.

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

Implementation

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

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