Polygon constructor

Polygon(
  1. {@required List<LatLng> points,
  2. double strokeWidth: 10,
  3. Color strokeColor,
  4. Color fillColor,
  5. bool visible: true,
  6. JoinType joinType: JoinType.bevel}
)

默认构造函数

Implementation

Polygon(
    {@required this.points,
    this.strokeWidth = 10,
    this.strokeColor,
    this.fillColor,
    this.visible = true,
    this.joinType = JoinType.bevel})
    : assert(points != null && points.length > 0),
      super();