StockRequest<Key> class final

Represents a single Stock request

The key is a unique identifier for your data

If refresh is true, Stock will always get fresh value from fetcher. If it's false, Stock will try to return the SourceOfTruth data, and if it doesn't exist, Stock will request fresh data using the Fetcher.

Constructors

StockRequest({required Key key, required bool refresh})
StockRequest constructor

Properties

hashCode int
The hash code for this object.
no setterinherited
key ↔ Key
The request key
getter/setter pair
refresh bool
If it is true, Stock will always get fresh value from fetcher. If it's false, Stock will try to return the SourceOfTruth data, and if it doesn't exist, Stock will request fresh data using the Fetcher.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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