CacheEntry class Null safety

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.
read-onlyinherited
length int
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
ttl int
final
url String
final

Methods

isValid() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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...