CacheEntry class
Constructors
-
CacheEntry({required DateTime dateCreated, required DateTime validUntil, required Map<
String, String> headers, required String body, required String? requestedUrl, required int statusCode, required String key}) -
CacheEntry.fromJson(Map<
String, dynamic> json) -
factory
- CacheEntry.fromResponse(Response response, {required String key, required Duration maxCacheAge})
-
factory
Properties
- body → String
-
final
- dateCreated → DateTime
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
final
- key → String
-
final
- requestedUrl → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
final
- validUntil → DateTime
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toResponse(
) → Response -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited