PersonalizedRankingModel class
Model that computes the scores and sorts the barcodes accordingly.
- Mixed-in types
- Available extensions
Constructors
-
PersonalizedRankingModel(List<
String> initialBarcodes, LocalDatabase localDatabase)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
initialBarcodes
→ List<
String> -
final
- loadingError → String?
-
no setter
- loadingStatus → LoadingStatus
-
no setter
- localDatabase → LocalDatabase
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scores
→ List<
MatchedScoreV2> -
final
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dismiss(
String barcode) → void - Removes a barcode from the barcodes and from the scores.
-
dispose(
) → void -
Discards any resources used by the object.
override
-
getLoadingProgress(
) → double? - Returns the loading progress between 0 (min) and 1 (max).
-
needsRefresh(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
refresh(
ProductPreferences productPreferences) → Future< void> - Refreshes the computations.
-
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited