resolve method
The interval to poll query at; null means "do not poll".
Implementation
Duration? resolve(Query<Object?> query) => switch (this) {
RefetchIntervalOff() => null,
RefetchIntervalEvery(:final interval) => interval,
RefetchIntervalDynamic(:final compute) => compute(query),
};