AbstractQueryConfiguration constructor
AbstractQueryConfiguration({
- OpenFoodFactsLanguage? language,
- List<
OpenFoodFactsLanguage> ? languages, - OpenFoodFactsCountry? country,
- List<
ProductField> ? fields, - List<
Parameter> additionalParameters = const [],
Implementation
AbstractQueryConfiguration({
this.language,
this.languages,
this.country,
this.fields,
this.additionalParameters = const [],
}) {
fields ??= [ProductField.ALL];
if (languages != null) {
if (language != null && languages!.isNotEmpty) {
throw ArgumentError(
'[languages] cannot be used together with [language]');
}
}
}