CacheResponse class

Constructors

CacheResponse({@required String url, @required String key, @required DateTime expiry, @required String method, @required CachePriority priority, @required DateTime downloadedAt, @required String eTag, @required List<int> content})
CacheResponse.fromError(DioError error)
factory
CacheResponse.fromRequestOptions(RequestOptions request)
factory

Properties

content List<int>
final
downloadedAt DateTime
final
eTag String
final
expiry DateTime
final
hashCode int
The hash code for this object. [...]
read-only, inherited
key String
final
method String
final
priority CachePriority
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
url String
final

Methods

copyWith({List<int> content, DateTime downloadedAt, String eTag, DateTime expiry, CachePriority priority, int statusCode, String method, String url}) CacheResponse
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toResponse(RequestOptions options) Response
toString() String
Returns a string representation of this object.
inherited
updateRequest(RequestOptions options, bool addModifiedHeaders) → void

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

fromResponse(String key, Response response, DateTime expiry, CachePriority priority) Future<CacheResponse>