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,
- required bool editable,
- VoidCallback? onTap,
- required ArgumentCallback<
Map> ? onDragend, - required ArgumentCallback<
Map> ? onInsertAt, - required ArgumentCallback<
Map> ? onRemoveAt, - required ArgumentCallback<
Map> ? onSetAt,
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,
required this.editable,
this.onTap,
required this.onDragend,
required this.onInsertAt,
required this.onRemoveAt,
required this.onSetAt,
});