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