ProductListQueryConfiguration constructor

ProductListQueryConfiguration(
  1. List<String> barcodes, {
  2. OpenFoodFactsLanguage? language,
  3. List<OpenFoodFactsLanguage> languages = const [],
  4. OpenFoodFactsCountry? country,
  5. List<ProductField>? fields,
  6. int? page,
  7. int? pageSize,
  8. 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),
      );