Polygon constructor
const
Polygon({
- required PolygonId polygonId,
- required List<
LatLng> points, - bool geodesic = false,
- Color strokeColor = Colors.white,
- int strokeWidth = 1,
- Color fillColor = Colors.transparent,
- bool visible = true,
- int zIndex = 0,
- bool clickable = false,
- VoidCallback? onClick,
- List<
List< holes = const <List<LatLng>>[],LatLng> > - JointType strokeJointType = JointType.mitered,
- List<
PatternItem> strokePattern = const <PatternItem>[],
Implementation
const Polygon({
required this.polygonId,
required this.points,
this.geodesic = false,
this.strokeColor = Colors.white,
this.strokeWidth = 1,
this.fillColor = Colors.transparent,
this.visible = true,
this.zIndex = 0,
this.clickable = false,
this.onClick,
this.holes = const <List<LatLng>>[],
this.strokeJointType = JointType.mitered,
this.strokePattern = const <PatternItem>[],
});