CacheEntry class

Constructors

CacheEntry({required String url, required Uint8List? bytes, required DateTime ctime, required int ttl})
const

Properties

bytes Uint8List?
final
ctime DateTime
final
hashCode int
The hash code for this object.
no setterinherited
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ttl int
final
url String
final

Methods

isValid() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
writeTo(File file, {Encoding encoding = utf8}) Future

Operators

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

Static Methods

fromFile(File file, {bool loadContent = true}) Future<CacheEntry>
create CacheEntry from file The file content like: url: xxxx length: xxxx ctime: xxx ttl: xxx content bytes...