ProductListSupplier class abstract

Asynchronously loads a ProductList with products

Implementers

Constructors

ProductListSupplier(PagedProductQuery productQuery, LocalDatabase localDatabase, {int? timestamp})

Properties

hashCode → int
The hash code for this object.
no setterinherited
localDatabase → LocalDatabase
final
partialProductList → PartialProductList
final
productQuery → PagedProductQuery
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → int?
final

Methods

asyncLoad() → Future<String?>
Returns null if OK, or the message error
clearBeyondTopPage() → Future<void>
Clears the database from page 2.
getRefreshSupplier() → ProductListSupplier?
Returns a helper supplier in order to refresh the data
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

getBestSupplier(PagedProductQuery productQuery, LocalDatabase localDatabase) → Future<ProductListSupplier>
Returns the fastest data supplier: database if possible, or server query