fetchPolicy property
FetchPolicy?
get
fetchPolicy
Implementation
static FetchPolicy? get fetchPolicy {
switch (_fetchPolicy) {
case CachePolicy.noCache:
return FetchPolicy.noCache;
case CachePolicy.cacheAndNetwork:
return FetchPolicy.cacheAndNetwork;
case CachePolicy.networkOnly:
return FetchPolicy.networkOnly;
case CachePolicy.cacheFirst:
return FetchPolicy.cacheFirst;
case CachePolicy.cacheOnly:
return FetchPolicy.cacheOnly;
default:
return null;
}
}