PolygonElement constructor
PolygonElement({})
Creates a polygon element.
Implementation
PolygonElement({
required this.points,
required PaintStyle style,
double? rotation,
Offset? rotationAxis,
String? tag,
}) : assert(points.length >= 2),
super(
style: style,
rotation: rotation,
rotationAxis: rotationAxis,
tag: tag,
);