TaxonomyQueryConfiguration<T extends JsonObject, F extends Enum> constructor

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

Allows subclasses to create a TaxonomyQueryConfiguration from the supplied parameters.

Implementation

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