TaxonomyQueryConfiguration<T extends JsonObject, F extends Enum>.roots constructor

TaxonomyQueryConfiguration<T extends JsonObject, F extends Enum>.roots(
  1. TagType tagType, {
  2. List<OpenFoodFactsLanguage>? languages,
  3. OpenFoodFactsCountry? country,
  4. bool includeChildren = false,
  5. List<F> fields = const [],
  6. List<Parameter> additionalParameters = const [],
})

Implementation

TaxonomyQueryConfiguration.roots(
  this.tagType, {
  List<OpenFoodFactsLanguage>? languages,
  this.country,
  this.includeChildren = false,
  this.fields = const [],
  this.additionalParameters = const [],
})  : _isRootConfiguration = true,
      tags = const <String>[],
      languages = languages ??
          OpenFoodAPIConfiguration.globalLanguages ??
          const <OpenFoodFactsLanguage>[];