getBarcodeQueryConfiguration method
- String barcode,
- OpenFoodFactsLanguage language, {
- 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,
);