Polygon constructor

const Polygon({
  1. required PolygonId polygonId,
  2. bool consumeTapEvents = false,
  3. Color fillColor = Colors.black,
  4. List<LatLng> points = const <LatLng>[],
  5. Color strokeColor = Colors.black,
  6. int strokeWidth = 10,
  7. bool visible = true,
  8. VoidCallback? onTap,
})

Creates an immutable representation of a polygon through geographical locations on the map.

Implementation

const Polygon({
  required this.polygonId,
  this.consumeTapEvents = false,
  this.fillColor = Colors.black,
  this.points = const <LatLng>[],
  this.strokeColor = Colors.black,
  this.strokeWidth = 10,
  this.visible = true,
  this.onTap,
});