LuckyRasterBudget class final
实验性(可能调整):所有 raster 缓存共享的名义 RGBA 字节账本。
Properties
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