TaxonomyAdditiveQueryConfiguration.roots constructor

TaxonomyAdditiveQueryConfiguration.roots({
  1. List<OpenFoodFactsLanguage>? languages,
  2. OpenFoodFactsCountry? country,
  3. bool includeChildren = false,
  4. List<TaxonomyAdditiveField> fields = const [],
  5. List<Parameter> additionalParameters = const [],
})

Configuration to get the root additives

Implementation

TaxonomyAdditiveQueryConfiguration.roots({
  final List<OpenFoodFactsLanguage>? languages,
  final OpenFoodFactsCountry? country,
  final bool includeChildren = false,
  final List<TaxonomyAdditiveField> fields = const [],
  final List<Parameter> additionalParameters = const [],
}) : super.roots(
        TagType.ADDITIVES,
        languages: languages,
        country: country,
        includeChildren: includeChildren,
        fields: fields,
        additionalParameters: additionalParameters,
      );