download method
override
Downloads the taxonomy for the given tags.
Implementation
@protected
@override
Future<Map<String, TaxonomyOrigin>?> download(
List<String> tags,
) async => OpenFoodAPIClient.getTaxonomyOrigins(
TaxonomyOriginQueryConfiguration(
tags: tags,
country: getCountry(),
languages: <OpenFoodFactsLanguage>[getLanguage()],
fields: <TaxonomyOriginField>[TaxonomyOriginField.NAME],
includeChildren: false,
),
);