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