Polygon constructor

const Polygon({
  1. required PolygonId polygonId,
  2. required List<LatLng> points,
  3. bool geodesic = false,
  4. Color strokeColor = Colors.white,
  5. int strokeWidth = 1,
  6. Color fillColor = Colors.transparent,
  7. bool visible = true,
  8. int zIndex = 0,
  9. bool clickable = false,
  10. VoidCallback? onClick,
  11. List<List<LatLng>> holes = const <List<LatLng>>[],
  12. JointType strokeJointType = JointType.mitered,
  13. 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>[],
});