PolygonArgs constructor
const
PolygonArgs({})
Provide either a single value radius
or a list of values for each corner
radii
.
Here default value of radius
is kDefaultRadius.
Here if length of radii
is less then the length of coords
, then the
list will be repeated.
When radii
is provided, it will be preferred over radius
.
Here provide the size
of the container inside which the polygon will be.
Note: You don't need to provide this, in-case of using this inside
PolygonPainter.
Set useInCircle
to true, to get in-circles for corners.
Implementation
const PolygonArgs({
required this.coords,
this.radii,
this.radius = kDefaultRadius,
this.size,
this.useInCircle = false,
});