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