IOSURLRequestCachePolicy class

An iOS-specific Class that represents the constants used to specify interaction with the cached responses. Use URLRequestCachePolicy instead.

Annotations
  • @Deprecated('Use URLRequestCachePolicy instead')

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

isSupported() bool
Checks if the value is supported by the defaultTargetPlatform.
name() String
Gets the name of the value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNativeValue() int?
Gets int native value if supported by the current platform, otherwise null.
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<IOSURLRequestCachePolicy>
Set of all values of IOSURLRequestCachePolicy.
final

Static Methods

asNameMap() Map<String, IOSURLRequestCachePolicy>
Creates a map from the names of IOSURLRequestCachePolicy values to the values.
byName(String? name) IOSURLRequestCachePolicy?
Gets a possible IOSURLRequestCachePolicy instance value with name name.
fromNativeValue(int? value) IOSURLRequestCachePolicy?
Gets a possible IOSURLRequestCachePolicy instance from a native value.
fromValue(int? value) IOSURLRequestCachePolicy?
Gets a possible IOSURLRequestCachePolicy instance from int value.

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.
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.
RELOAD_REVALIDATING_CACHE_DATA → const IOSURLRequestCachePolicy
Use cache data if the origin source can validate it; otherwise, load from the origin.
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.
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.
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.