ProductPriceRefresher class

Async refresh of the prices of a product, with several loading phases.

Constructors

ProductPriceRefresher({required GetPricesResult? pricesResult, required GetPricesModel model, required UserPreferences userPreferences, required VoidCallback refreshDisplay})

Properties

hashCode → int
The hash code for this object.
no setterinherited
loadingError → String?
no setter
loadingStatus → LoadingStatus?
no setter
model → GetPricesModel
final
pricesResult ↔ GetPricesResult?
getter/setter pair
refreshDisplay → VoidCallback
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userPreferences → UserPreferences
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runIfNeeded() → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

setLatestUpdate(String barcode) → void