PolygonPainter constructor
Here provide args
defining the properties of the polygon.
Set showPolygon
to false, to hide the polygon.
Set showCirclesAtCorner
to true, to show circles at corner instead of
simply rounder corner, i.e instead of simply just an arc.
Set showOutlines
to true, to show the outlines around the whole polygon,
i.e the original polygon connecting the coords directly without border
radius.
Set showPoints
to true, to show the points at coords.
Specify linePaint
for custom Paint object, to use for drawing the
lines of the polygon. Its default value is defaultLinePaint
Specify circlePaint
for the circles to be drawn when
showCirclesAtCorner
is true. If not specified this will be the same as
the linePaint
as default.
Specify outlinePaint
for the outlines to be drawn when showOutlines
is
true. If not specified this will be the same as the linePaint
as default.
Specify pointPaint
for the outlines to be drawn when showPoints
is
true. If not specified this will be the same as the linePaint
as default.
Implementation
const PolygonPainter({
required this.args,
this.showCirclesAtCorner = false,
this.showOutlines = false,
this.showPoints = false,
this.showPolygon = true,
this.linePaint,
this.circlePaint,
this.outlinePaint,
this.pointPaint,
}) : super();