PolygonElement constructor

PolygonElement({
  1. required List<Offset> points,
  2. required PaintStyle style,
  3. double? rotation,
  4. Offset? rotationAxis,
  5. String? tag,
})

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,
      );