shouldRefetch property
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.
If no ShouldRefetch is passed; all normal caching rules apply.
Implementation
final ShouldRefetch? shouldRefetch;