PathElement constructor

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

Creates a path element.

Implementation

PathElement({
  required this.segments,
  required PaintStyle style,
  double? rotation,
  Offset? rotationAxis,
  String? tag,
})  : assert(segments.first is MoveSegment),
      super(
        style: style,
        rotation: rotation,
        rotationAxis: rotationAxis,
        tag: tag,
      );