ProductListSupplier class Null safety

Asynchronously loads a ProductList with products

Constructors

ProductListSupplier(dynamic productQuery, dynamic localDatabase, {int? timestamp})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
localDatabase → dynamic
final
partialProductList → dynamic
final
productQuery → dynamic
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timestamp int?
final

Methods

asyncLoad() Future<String?>
Returns null if OK, or the message error
clear() Future<void>
Clears the database and restarts from top page.
getRefreshSupplier() ProductListSupplier?
Returns a helper supplier in order to refresh the data
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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(dynamic productQuery, dynamic localDatabase) Future<ProductListSupplier>
Returns the fastest data supplier: database if possible, or server query