Polygon constructor

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

Implementation

Polygon({
  required this.points,
  required this.onTap,
  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, (_) => []);