download method

  1. @protected
  2. @override
Future<Map<String, TaxonomyLabel>?> download(
  1. List<String> tags
)
override

Downloads the taxonomy for the given tags.

Implementation

@protected
@override
Future<Map<String, TaxonomyLabel>?> download(List<String> tags) async =>
    OpenFoodAPIClient.getTaxonomyLabels(
      TaxonomyLabelQueryConfiguration(
        tags: tags,
        country: getCountry(),
        languages: <OpenFoodFactsLanguage>[getLanguage()],
        fields: <TaxonomyLabelField>[TaxonomyLabelField.NAME],
      ),
    );