Polygon<R extends Object> constructor
Polygon<R extends Object> ({
- required List<
LatLng> points, - List<
List< ? holePointsList,LatLng> > - Color? color,
- double borderStrokeWidth = 0,
- Color borderColor = const Color(0xFFFFFF00),
- bool disableHolesBorder = false,
- StrokePattern pattern = const StrokePattern.solid(),
- StrokeCap strokeCap = StrokeCap.round,
- StrokeJoin strokeJoin = StrokeJoin.round,
- String? label,
- TextStyle labelStyle = const TextStyle(),
- PolygonLabelPlacement labelPlacement = PolygonLabelPlacement.centroid,
- bool rotateLabel = false,
- R? hitValue,
Create a new Polygon instance by setting it's parameters.
Implementation
Polygon({
required this.points,
this.holePointsList,
this.color,
this.borderStrokeWidth = 0,
this.borderColor = const Color(0xFFFFFF00),
this.disableHolesBorder = false,
this.pattern = const StrokePattern.solid(),
this.strokeCap = StrokeCap.round,
this.strokeJoin = StrokeJoin.round,
this.label,
this.labelStyle = const TextStyle(),
this.labelPlacement = PolygonLabelPlacement.centroid,
this.rotateLabel = false,
this.hitValue,
}) : _filledAndClockwise = color != null && isClockwise(points);