DaoProductList class
- Inheritance
-
- Object
- AbstractDao
- DaoProductList
Constructors
- DaoProductList(LocalDatabase localDatabase)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- localDatabase → LocalDatabase
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bulkSet(
ProductList productList, List< String> barcodes, {bool include = true}) → Future<void> -
Adds or removes list of barcodes to/from a
productListin one go (depending oninclude) -
clear(
ProductList productList) → Future< void> -
delete(
ProductList productList) → Future< bool> -
exist(
ProductList productList) → bool - Checks if a list exists in the database.
-
export(
ProductList productList) → Future< Map< String, dynamic> > - Exports a list - typically for debug purposes
-
get(
ProductList productList) → Future< void> - Loads the barcode list.
-
getLength(
ProductList productList) → Future< int> - Returns the number of barcodes quickly but without product check.
-
getTimestamp(
ProductList productList) → Future< int?> -
getUserLists(
) → List< String> - Returns the names of the user lists.
-
getUserListsWithBarcodes(
List< String> withBarcodes) → Future<List< String> > - Returns the names of the user lists that contains ALL the given barcodes.
-
init(
) → Future< void> -
Best place to open a hive box.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
push(
ProductList productList, String barcode) → Future< void> - Moves a barcode to the end of the list.
-
put(
ProductList productList) → Future< void> -
registerAdapter(
) → void -
Where the specific
registerAdapterhive related method is called.override -
rename(
ProductList initialList, String newName) → Future< ProductList> -
set(
ProductList productList, String barcode, bool include) → Future< bool> -
Adds or removes a barcode within a product list (depending on
include) -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getKey(
ProductList productList) → String -
getProductListParameters(
String key) → String -
getProductListType(
String key) → ProductListType