dashStyle property
PdfDashStyle
get
dashStyle
Gets or sets the dash style of the pen.
//Create a new PDF document.
PdfDocument document = PdfDocument()
..pages.add().graphics.drawRectangle(
pen: PdfPen(PdfColor(255, 0, 0),
dashStyle: PdfDashStyle.custom, lineJoin: PdfLineJoin.bevel)
..dashPattern = [4, 2, 1, 3],
bounds: Rect.fromLTWH(0, 0, 200, 100));
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();
Implementation
PdfDashStyle get dashStyle => _dashStyle;
set
dashStyle
(PdfDashStyle value)
Implementation
set dashStyle(PdfDashStyle value) {
_checkImmutability();
_setDashStyle(value);
}