Polygon constructor

const Polygon(
  1. {@required PolygonId polygonId,
  2. bool consumeTapEvents = false,
  3. Color fillColor = Colors.black,
  4. bool geodesic = false,
  5. List<LatLng> points = const <LatLng>[],
  6. Color strokeColor = Colors.black,
  7. int strokeWidth = 10,
  8. bool visible = true,
  9. int zIndex = 0,
  10. 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.geodesic = false,
  this.points = const <LatLng>[],
  this.strokeColor = Colors.black,
  this.strokeWidth = 10,
  this.visible = true,
  this.zIndex = 0,
  this.onTap,
});