ProductListQueryConfiguration constructor
ProductListQueryConfiguration(
- List<
String> barcodes, { - OpenFoodFactsLanguage? language,
- List<
OpenFoodFactsLanguage> languages = const [], - OpenFoodFactsCountry? country,
- List<
ProductField> ? fields, - int? page,
- int? pageSize,
- SortOption? sortOption,
See AbstractQueryConfiguration.languages for parameter's description.
Implementation
ProductListQueryConfiguration(
this.barcodes, {
final OpenFoodFactsLanguage? language,
final List<OpenFoodFactsLanguage> languages = const [],
final OpenFoodFactsCountry? country,
final List<ProductField>? fields,
int? page,
int? pageSize,
SortOption? sortOption,
}) : assert(barcodes.isNotEmpty),
super(
language: language,
languages: languages,
country: country,
fields: fields,
additionalParameters:
_convertToParametersList(page, pageSize, sortOption),
);