maxStale property

Duration? maxStale
getter/setter pair

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);