IOSURLRequestCachePolicy class Null safety
An iOS-specific Class that represents the constants used to specify interaction with the cached responses.
Properties
- hashCode → int
-
The hash code for this object.
read-only, override
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
toValue(
) → int
Operators
-
operator ==(
Object value) → bool -
The equality operator.
override
Static Properties
-
values
→ Set<
IOSURLRequestCachePolicy> -
final
Static Methods
-
fromValue(
int? value) → IOSURLRequestCachePolicy?
Constants
- RELOAD_IGNORING_LOCAL_AND_REMOTE_CACHE_DATA → const IOSURLRequestCachePolicy
-
Ignore local cache data, and instruct proxies and other intermediates to disregard their caches so far as the protocol allows.
const IOSURLRequestCachePolicy._internal(4)
- RELOAD_IGNORING_LOCAL_CACHE_DATA → const IOSURLRequestCachePolicy
-
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.
const IOSURLRequestCachePolicy._internal(1)
- RELOAD_REVALIDATING_CACHE_DATA → const IOSURLRequestCachePolicy
-
Use cache data if the origin source can validate it; otherwise, load from the origin.
const IOSURLRequestCachePolicy._internal(5)
- RETURN_CACHE_DATA_DONT_LOAD → const IOSURLRequestCachePolicy
-
Use existing cache data, regardless or age or expiration date, and fail if no cached data is available.
const IOSURLRequestCachePolicy._internal(3)
- RETURN_CACHE_DATA_ELSE_LOAD → const IOSURLRequestCachePolicy
-
Use existing cache data, regardless or age or expiration date, loading from originating source only if there is no cached data.
const IOSURLRequestCachePolicy._internal(2)
- USE_PROTOCOL_CACHE_POLICY → const IOSURLRequestCachePolicy
-
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.
const IOSURLRequestCachePolicy._internal(0)