isStale property
bool
get
isStale
Checks if the route is stale based on timeout
Implementation
bool get isStale {
final timeout =
attributes['timeout'] as Duration? ?? Duration(seconds: 180);
return DateTime.now().difference(lastUpdate) > timeout;
}