maxStale property
Specifies the duration after which the cached response is considered stale. After this duration, the cache will no longer be used and a fresh network request will be made.
Implementation
static Duration maxStale = const Duration(days: 7);