getBarcodeQueryConfiguration method

ProductQueryConfiguration getBarcodeQueryConfiguration(
  1. String barcode,
  2. OpenFoodFactsLanguage language, {
  3. IngredientsUnwantedParameter? unwantedIngredients,
})

Returns the standard configuration for barcode product query.

Implementation

ProductQueryConfiguration getBarcodeQueryConfiguration(
  String barcode,
  OpenFoodFactsLanguage language, {
  IngredientsUnwantedParameter? unwantedIngredients,
}) => ProductQueryConfiguration(
  barcode,
  fields: ProductQuery.fields,
  language: language,
  country: ProductQuery.getCountry(),
  version: ProductQuery.productQueryVersion,
  productTypeFilter: ProductTypeFilter.all,
  activateKnowledgePanelsSimplified: true,
  unwantedIngredients: unwantedIngredients,
);