AbstractQueryConfiguration class abstract
Abstract Query Configuration, that helps build API URI
Constructors
-
AbstractQueryConfiguration({OpenFoodFactsLanguage? language, List<
OpenFoodFactsLanguage> ? languages, OpenFoodFactsCountry? country, List<ProductField> ? fields, List<Parameter> additionalParameters = const []})
Properties
-
additionalParameters
↔ List<
Parameter> -
getter/setter pair
- country → OpenFoodFactsCountry?
-
The country for this query, if any.
final
-
fields
↔ List<
ProductField> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- language ↔ OpenFoodFactsLanguage?
-
Use to set the desired product language. Cannot be used together with
the languages field.
See also the comment to the languages field.
getter/setter pair
-
languages
↔ List<
OpenFoodFactsLanguage> ? -
The languages field should be used when a product is requested
with fields in multiple languages. I.e.:
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
computeCountryCode(
) → String? -
getParametersMap(
) → Map< String, String> - Returns the corresponding API URI parameter map
-
getResponse(
User? user, QueryType? queryType) → Future< Response> -
getUriPath(
) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited