QueryConfigFlutter class
Query config including flutter options
- Inheritance
-
- Object
- QueryConfig
- QueryConfigFlutter
Constructors
- QueryConfigFlutter({bool? refetchOnResume, bool? refetchOnConnection, @Deprecated('Use QueryConfig.storageDeserializer instead') Serializer? serializer, Serializer? storageSerializer, Serializer? storageDeserializer, bool? ignoreCacheDuration, bool? storeQuery, Duration? refetchDuration, ShouldRefetch? shouldRefetch, Duration? storageDuration, Duration? cacheDuration, bool? shouldRethrow})
- Query config including flutter options
Properties
- cacheDuration → Duration
-
Use cacheDuration to specify how long a query that has zero listeners
stays in memory.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreCacheDuration → bool
-
If set to true the query(ies) will never be removed from cache.
finalinherited
- refetchDuration → Duration
-
Use the refetchDuration Specify how long before the query is re-fetched
in the background.
finalinherited
- refetchOnConnection → bool?
-
Whether this query should be re-fetched when the device gains connection
final
- refetchOnResume → bool?
-
Whether this query should be re-fetched when the app comes into the foreground
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serializer → Serializer?
-
The serializer is called when the query is fetched from storage. Use it to
change the stored value to the query value.
finalinherited
- shouldRefetch → ShouldRefetch?
-
ShouldRefetch is called before a query is fetched, both after the data is fetched from storage
and when a query is stale. This would usually not be necessary to use but can give
a high level of control over when a query should be re-fetched. The second
parameter (storageOnly) is true if the query has only been fetched from storage.
finalinherited
- shouldRethrow → bool
-
shouldRethrow Tells cached query whether it should rethrow any error
caught in the query.
finalinherited
- storageDeserializer → Serializer?
-
Called when the query is fetched from storage and should
convert the stored data to the usable data.
finalinherited
- storageDuration → Duration?
-
Use storageDuration to specify how long a query is stored in the database.
Defaults to Null (forever).
finalinherited
- storageSerializer → Serializer?
-
Converts the query data to a storable format.
finalinherited
- storeQuery → bool
-
Use storeQuery to set whether a query should be stored or not.
Defaults to true;
finalinherited
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