CachePolicy constructor Null safety
Creates a new cache policy.
Policies applied to Response.cachePolicy will add the appropriate headers to that response. See properties for definitions of arguments to this constructor.
Implementation
const CachePolicy({
this.preventIntermediateProxyCaching = false,
this.preventCaching = false,
this.requireConditionalRequest = false,
this.expirationFromNow,
});