MFPolygon constructor

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

Creates an immutable object representing a gon drawn through geographical locations on the map.

Implementation

const MFPolygon({
  required this.polygonId,
  this.consumeTapEvents = false,
  this.fillColor = Colors.black,
  this.points = const <MFLatLng>[],
  this.holes = const <List<MFLatLng>>[],
  this.strokeColor = Colors.black,
  this.strokeWidth = 10,
  this.visible = true,
  this.zIndex = 0,
  this.onTap,
});