PaintResource class abstract interface

绘制对象跨帧持有的资源。

由持有者登记(见 PaintResourceOwner): 声明变化时 reset, 持有者销毁时 dispose。

Implementers

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

dispose() → void
释放原生资源(如 TextPainter 持有的 ui.Paragraph)。之后不可再用。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
丢弃缓存内容, 对象本身保留可继续使用。
toString() → String
A string representation of this object.
inherited

Operators

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