RefetchIntervalDynamic class final Option values

The RefetchInterval.dynamic variant: the interval is computed from the query each time the timer is re-armed, and null stops polling.

Inheritance

Constructors

RefetchIntervalDynamic(Duration? compute(Query<Object?> query))
Computes the interval with compute; prefer spelling it RefetchInterval.dynamic(…).
const

Properties

compute → Duration? Function(Query<Object?> query)
Given the query, how often to poll it, or null to stop.
final
hashCode → int
The hash code for this object.
no setteroverride
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
resolve(Query<Object?> query) → Duration?
The interval to poll query at; null means "do not poll".
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override