Line class

Implemented types

Constructors

Line(List<Offset> list, {double? smoothRatio, List<double>? dashList})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
smoothRatio double?
final

Methods

merge(Line l) Path
合并两个Path使其头相连,尾相连
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
path(bool close) Path
override
step([double ratio = 0.5]) List<Offset>
返回其 step图形样式坐标点
stepAfter() List<Offset>
返回其 step图形样式(after)坐标点
stepBefore() List<Offset>
返回其 step图形样式(before)坐标点
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

smoothArea(List<Offset> p1List, List<Offset> p2List, {double ratio = 0.2}) Path
给定上界点列表和下界点列表,返回组成的封闭的平滑区域路径