shouldTryCacheFirst property

bool get shouldTryCacheFirst

Whether this policy should try cache first.

Implementation

bool get shouldTryCacheFirst =>
    this == CachePolicy.cacheFirst ||
    this == CachePolicy.cacheOnly ||
    this == CachePolicy.staleWhileRevalidate;