Polygon constructor

Polygon({
  1. List<LatLng?>? points,
  2. List<List<LatLng>>? holePointsList,
  3. Color color = const Color(0xFF00FF00),
  4. double borderStrokeWidth = 0.0,
  5. Color borderColor = const Color(0xFFFFFF00),
  6. bool disableHolesBorder = false,
  7. bool isDotted = false,
})

Implementation

Polygon({
  this.points,
  this.holePointsList,
  this.color = const Color(0xFF00FF00),
  this.borderStrokeWidth = 0.0,
  this.borderColor = const Color(0xFFFFFF00),
  this.disableHolesBorder = false,
  this.isDotted = false,
}) : holeOffsetsList = null == holePointsList || holePointsList.isEmpty
          ? null
          : List.generate(holePointsList.length, (_) => []);