Polygon constructor

Polygon({
  1. required List<PointPair> points,
  2. String? id,
  3. Color? fill,
  4. Color? stroke,
  5. StrokeWidth? strokeWidth,
  6. StrokeDasharray? strokeDasharray,
  7. String? style,
  8. String? transform,
  9. Unit? unit,
  10. Visibility? visibility = Visibility.inherit,
})

Polygon constructor points A list of points that will be drawn a polygon in the SVG id widget id to made some reference in the SVG file fill fill color stroke stroke line color strokeWidth stroke line width strokeDasharray stroke line dash style style custom css style transform custom css transformation unit unit used in the parameters, default is px (pixel) visibility visibility of the element, default is inherit

Implementation

Polygon(
    {required this.points,
    this.id,
    this.fill,
    this.stroke,
    this.strokeWidth,
    this.strokeDasharray,
    this.style,
    this.transform,
    this.unit,
    this.visibility = Visibility.inherit});