Polygon constructor

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

默认构造函数

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();