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
key → String
final
method → String
final
priority CachePriority
final
url → String
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

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