PdfPath constructor
PdfPath({})
Initializes a new instance of the PdfPath class with pen, brush, fillMode, points and pathTypes
Implementation
PdfPath(
{PdfPen? pen,
PdfBrush? brush,
PdfFillMode fillMode = PdfFillMode.winding,
List<Offset> points = const <Offset>[],
List<int>? pathTypes}) {
_helper = PdfPathHelper(this);
if (pen != null) {
super.pen = pen;
}
if (points.isNotEmpty && pathTypes != null) {
addPath(points, pathTypes);
}
_helper.fillMode = fillMode;
this.brush = brush;
}