ContinuousScanModel class

Mixed-in types
Available extensions

Constructors

ContinuousScanModel()

Properties

compareFeatureAvailable → bool
If we can compare products (= meaning we have at least two existing products)
no setter
compareFeatureEnabled → bool
Whether we can show the user an interface to compare products BUT it doesn't necessary we can't compare yet. Please refer instead to compareFeatureAvailable
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
lastConsultedBarcode ← String?
no getter
latestConsultedBarcode → String?
no setter
productList → ProductList
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
clearScanSession() → Future<void>
dispose() → void
Discards any resources used by the object.
inherited
getAvailableBarcodes() → Iterable<String>
List only barcodes where the product exists
getBarcodes() → List<String>
List all barcodes scanned (even products being loaded or not found)
getBarcodeState(String barcode) → ScannedProductState?
load(LocalDatabase localDatabase) → Future<ContinuousScanModel?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onCreateProduct(String? barcode) → Future<bool>
onScan(String? code) → Future<bool>
Adds a barcode Will return true if this barcode is successfully added
refresh() → Future<void>
refreshProductList() → Future<void>
removeBarcode(String barcode) → Future<void>
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
replaceListener(VoidCallback listener) → void

Available on ChangeNotifier, provided by the ChangeNotifierExtensions extension

retryBarcodeFetch(String barcode) → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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