CacheEntry class
Constructors
- CacheEntry({required String url, required Uint8List? bytes, required DateTime ctime, required int ttl})
-
const
Properties
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...