StaleTimeInfinite class final Option values
The StaleTime.infinite variant: never stale by time, so nothing refetches it on its own, but an invalidation or an explicit refetch still does — which is what separates it from StaleTimeStatic.
Constructors
- StaleTimeInfinite()
-
The one instance is StaleTime.infinite; a
const StaleTimeInfinite()is the same value.const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isStaticFor(
Query< Object?> query) → bool -
Whether this resolves to StaleTime.static for
query— the one thing that separates it from StaleTime.infinite: a static query is skipped byrefetchQueriesand by every refetch trigger, and outranks an invalidation.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
Query< Object?> query) → Duration? -
Resolves this to a plain duration for
query.nullmeans "never stale by time", which both StaleTime.static and StaleTime.infinite are.inherited -
resolveFor(
Query< Object?> query) → StaleTime -
This with any StaleTime.dynamic layer peeled off for
query, so the result is one of StaleTimeDuration, StaleTimeStatic or StaleTimeInfinite.inherited -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override