ProductList class

Constructors

ProductList.allToBeCompleted({required int pageSize, required int pageNumber, required OpenFoodFactsLanguage language, required OpenFoodFactsCountry? country, required ProductType productType})
ProductList.categorySearch(String category, {required int pageSize, required int pageNumber, required OpenFoodFactsLanguage language, required OpenFoodFactsCountry? country, required ProductType productType})
ProductList.contributor(String userId, {required int pageSize, required int pageNumber, required OpenFoodFactsLanguage language, required ProductType productType})
ProductList.history()
ProductList.informer(String userId, {required int pageSize, required int pageNumber, required OpenFoodFactsLanguage language, required ProductType productType})
ProductList.keywordSearch(String keywords, {required int pageSize, required int pageNumber, required OpenFoodFactsLanguage language, required OpenFoodFactsCountry? country, required ProductType productType})
ProductList.photographer(String userId, {required int pageSize, required int pageNumber, required OpenFoodFactsLanguage language, required ProductType productType})
ProductList.scanHistory()
ProductList.scanSession()
ProductList.toBeCompleted(String userId, {required int pageSize, required int pageNumber, required OpenFoodFactsLanguage language, required ProductType productType})
ProductList.user(String name)

Properties

barcodes → List<String>
no setter
country → OpenFoodFactsCountry?
Country at query time.
final
hashCode → int
The hash code for this object.
no setterinherited
isEditable → bool
Can be edited or renamed
no setter
language → OpenFoodFactsLanguage?
Language at query time.
final
listType → ProductListType
final
pageNumber → int?
Page number at query time.
final
pageSize → int?
Page size at query time.
final
parameters → String
final
productType → ProductType?
ProductType at query time.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalSize ↔ int
"Total size" returned by the query.
getter/setter pair

Methods

getList() → List<String>
getParametersKey() → String
isEmpty() → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String barcode) → bool
Removes a barcode from the list
set(Iterable<String> barcodes) → void
setAll(List<Product> products) → void
Sets all products with the same order as the input list
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited