SmoothLine class

笔触线条

Inheritance

Constructors

SmoothLine({double brushPrecision = 0.4})
SmoothLine.data({double brushPrecision = 0.4, required List<Offset> points, required List<double> strokeWidthList, required Paint paint})
SmoothLine.fromJson(Map<String, dynamic> data)
factory

Properties

brushPrecision double
final
hashCode int
The hash code for this object.
no setterinherited
paint Paint
画笔
getter/setter pairinherited
points List<Offset>
绘制点列表
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeWidthList List<double>
点之间的绘制线条权重列表
getter/setter pair

Methods

copy() SmoothLine
复制实例,避免对象传递
override
draw(Canvas canvas, Size size, bool deeper) → void
绘制核心方法
override
drawing(Offset nowPoint) → void
正在绘制
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startDraw(Offset startPoint) → void
开始绘制
override
toContentJson() Map<String, dynamic>
toJson
override
toJson() Map<String, dynamic>
toJson
inherited
toString() String
A string representation of this object.
inherited

Operators

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