BellImage class final

铃铛(钟身 + 顶钮 + 铃舌), 按 size 比例绘制; 细节较多, 宜 12 以上使用。

Inheritance

Constructors

BellImage(Size size, {double rasterScale = 4})

Properties

hashCode → int
The hash code for this object.
no setterinherited
rasterScale → double
位图相对 size 的倍率; 默认 4, 覆盖到 4x 屏仍清晰。
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Size
逻辑尺寸, 即 span 占位框的大小。
finalinherited

Methods

dispose() → void
释放原生资源(如 TextPainter 持有的 ui.Paragraph)。之后不可再用。
inherited
draw(Canvas canvas, Size size, Color color) → void
在 size 的逻辑坐标系内用 color 画图形; 画布已按 rasterScale 缩放。
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of(Color color) → Image
color 下的位图; 颜色不变时返回同一实例。
inherited
reset() → void
丢弃缓存内容, 对象本身保留可继续使用。
inherited
roundedPolygon(List<Offset> vertices, double radius) → Path
多边形逐角倒圆, radius 为 0 时即原多边形; 半径过大时切点夹到较短邻边的中点, 圆弧随之缩小。
inherited
span(Color color, {PlaceholderAlignment alignment = ui.PlaceholderAlignment.middle}) → ImageSpan
以 size 占位的行内图片。
inherited
strokePaint(Color color, double width) → Paint
描边图标用的画笔: 圆头线端、圆角拐点。
inherited
toString() → String
A string representation of this object.
inherited

Operators

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