LuckyRasterBudget class final

实验性(可能调整):所有 raster 缓存共享的名义 RGBA 字节账本。

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
usedBytes → int
实验性(可能调整):返回全部缓存已预占的名义字节数。
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release(int bytes) → void
实验性(可能调整):退还非负 bytes,占用最小为零;无返回值。
reset() → void
实验性(可能调整):测试隔离时清零账本;须先释放所有存活缓存。
toString() → String
A string representation of this object.
inherited
tryReserve(int bytes, int limit) → bool
实验性(可能调整):尝试占用非负 bytes,总量不超过 limit 才返回 true。

Operators

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

Static Properties

debugOnFallback ↔ void Function(int requested, int used, int limit)?
实验性(可能调整):debug 预占失败时通知请求字节、当前占用和本次上限。
getter/setter pair
instance → LuckyRasterBudget
实验性(可能调整):进程内共享实例,例如 LuckyRasterBudget.instance.usedBytes。
final