CrossImage class final
- Inheritance
-
- Object
- ShapeImage
- CrossImage
Constructors
- CrossImage(Size size, {double? thickness, double rasterScale = 4})
Properties
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