DaoProduct class
- Inheritance
-
- Implemented types
-
Methods
-
clearAllLanguages()
→ Future<int>
-
Sets the language of all products to null.
-
deleteAll()
→ Future<int>
-
Delete all products from the database
-
get(String barcode)
→ Future<Product?>
-
Returns the Product that matches the
barcode, or null.
-
getAll(Iterable<String> barcodes, {OpenFoodFactsLanguage? languageFilter})
→ Future<Map<String, Product>>
-
Returns the Products that match the
barcodes, and the
languageFilter if not null.
-
getAllKeys()
→ Future<List<String>>
-
-
getDeleteWhere(List deleteWhereArgs)
→ String
-
"where" clause for delete in bulk mode
override
-
getEstimatedTotalSizeInMB()
→ Future<double>
-
Get the estimated total size of the database in MegaBytes
-
getInsertColumns()
→ List<String>
-
Insert columns for bulk mode
override
-
getProductTypes(List<String> barcodes)
→ Future<Map<ProductType, List<String>>>
-
Returns the local products split by product type.
-
getTableName()
→ String
-
Table name
override
-
getTopProductsToTranslate(OpenFoodFactsLanguage language, {required int limit, required List<String> excludeBarcodes, required ProductType productType})
→ Future<List<String>>
-
Returns the most recently locally accessed products with wrong language.
-
getTotalNoOfProducts()
→ Future<Map<ProductType, int>>
-
Get the total number of products in the database
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
printStats({bool verbose = false})
→ Future<void>
-
For developers with stats in mind only.
-
put(Product product, OpenFoodFactsLanguage language, {required ProductType productType})
→ Future<void>
-
-
putAll(Iterable<Product> products, OpenFoodFactsLanguage language, {required ProductType productType})
→ Future<void>
-
Replaces products in database
-
splitAllProducts(String splitFunction(Product))
→ Future<Map<String, List<String>>>
-
Returns all the local products split by a function.
-
toString()
→ String
-
A string representation of this object.
inherited