download method

  1. @protected
  2. @override
Future<Map<String, TaxonomyOrigin>?> download(
  1. List<String> tags
)
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,
  ),
);