TaxonomyAllergenQueryConfiguration constructor

TaxonomyAllergenQueryConfiguration({
  1. required List<String> tags,
  2. List<OpenFoodFactsLanguage>? languages,
  3. OpenFoodFactsCountry? country,
  4. List<TaxonomyAllergenField> fields = const [],
  5. List<Parameter> additionalParameters = const [],
})

Configuration to get the allergens that match the tags.

Implementation

TaxonomyAllergenQueryConfiguration({
  required List<String> tags,
  List<OpenFoodFactsLanguage>? languages,
  OpenFoodFactsCountry? country,
  List<TaxonomyAllergenField> fields = const [],
  List<Parameter> additionalParameters = const [],
}) : super(
        TagType.ALLERGENS,
        tags,
        languages: languages,
        country: country,
        fields: fields,
        additionalParameters: additionalParameters,
      );