hasValidCache property
bool
get
hasValidCache
Whether a valid cached reachability result is currently available.
Implementation
bool get hasValidCache {
if (_cachedResult == null || _lastCheckTime == null) {
return false;
}
return DateTime.now().difference(_lastCheckTime!) < options.cacheDuration;
}