PdfPath class Null safety

Implements graphics path, which is a sequence of primitive graphics elements.



PdfPath({PdfPen? pen, PdfBrush? brush, PdfFillMode fillMode = PdfFillMode.winding, List<Offset> points = const <Offset>[], List<int>? pathTypes})
Initializes a new instance of the PdfPath class with pen, brush, fillMode, points and pathTypes


beginPageLayout BeginPageLayoutCallback?
Raises before the element should be printed on the page.
read / write, inherited
brush PdfBrush?
Gets the brush of the element
read / write
endPageLayout EndPageLayoutCallback?
Raises after the element was printed on the page.
read / write, inherited
hashCode int
The hash code for this object.
read-only, inherited
pen PdfPen
Gets a pen that will be used to draw the element.
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


addArc(Rect bounds, double startAngle, double sweepAngle) → void
Adds an arc
addBezier(Offset startPoint, Offset firstControlPoint, Offset secondControlPoint, Offset endPoint) → void
Adds an bezier curve
addEllipse(Rect bounds) → void
Adds an ellipse
addLine(Offset point1, Offset point2) → void
Adds a line
addPath(List<Offset> pathPoints, List<int> pathTypes) → void
Appends the path specified by the points and their types to this one.
addPie(Rect bounds, double startAngle, double sweepAngle) → void
Adds a pie
addPolygon(List<Offset> points) → void
Adds a polygon
addRectangle(Rect bounds) → void
Adds a rectangle
closeFigure() → void
Closes the last figure.
draw({PdfGraphics? graphics, PdfPage? page, Rect? bounds, PdfLayoutFormat? format}) PdfLayoutResult?
Draws an element on the graphics or page.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
startFigure() → void
Starts a new figure.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.