Polygon constructor
Polygon({})
默认构造函数
Implementation
Polygon(
{required this.points,
double strokeWidth = 10,
this.strokeColor = const Color(0xCC00BFFF),
this.fillColor = const Color(0xC487CEFA),
this.visible = true,
this.joinType = JoinType.bevel})
: assert(points.length > 0),
this.strokeWidth = (strokeWidth <= 0 ? 10 : strokeWidth),
super();