URLRequestCachePolicy class
Class that represents the constants used to specify interaction with the cached responses.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toNativeValue(
) → int - Gets int native value.
-
toString(
) → String -
A string representation of this object.
override
-
toValue(
) → int - Gets int value.
Operators
-
operator ==(
Object value) → bool -
The equality operator.
override
Static Properties
-
values
→ Set<
URLRequestCachePolicy> -
Set of all values of URLRequestCachePolicy.
final
Static Methods
-
fromNativeValue(
int? value) → URLRequestCachePolicy? - Gets a possible URLRequestCachePolicy instance from a native value.
-
fromValue(
int? value) → URLRequestCachePolicy? - Gets a possible URLRequestCachePolicy instance from int value.
Constants
- RELOAD_IGNORING_LOCAL_AND_REMOTE_CACHE_DATA → const URLRequestCachePolicy
- Ignore local cache data, and instruct proxies and other intermediates to disregard their caches so far as the protocol allows.
- RELOAD_IGNORING_LOCAL_CACHE_DATA → const URLRequestCachePolicy
- The URL load should be loaded only from the originating source. This policy specifies that no existing cache data should be used to satisfy a URL load request.
- RELOAD_REVALIDATING_CACHE_DATA → const URLRequestCachePolicy
- Use cache data if the origin source can validate it; otherwise, load from the origin.
- RETURN_CACHE_DATA_DONT_LOAD → const URLRequestCachePolicy
- Use existing cache data, regardless or age or expiration date, and fail if no cached data is available.
- RETURN_CACHE_DATA_ELSE_LOAD → const URLRequestCachePolicy
- Use existing cache data, regardless or age or expiration date, loading from originating source only if there is no cached data.
- USE_PROTOCOL_CACHE_POLICY → const URLRequestCachePolicy
- Use the caching logic defined in the protocol implementation, if any, for a particular URL load request. This is the default policy for URL load requests.