CacheUtil class

缓存工具类,提供临时缓存相关操作。

Constructors

CacheUtil()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

clearCache() Future<void>
清除缓存。
deleteDirectory(Directory dir) Future<void>
递归删除目录。
formatMemorySize(double byteSize, {int precision = 2}) String
格式化内存大小。
getCacheSize() Future<String>
获取当前缓存大小。