dashPattern property
Gets or sets the dash pattern of the pen.
//Create a new PDF document.
PdfDocument document = PdfDocument()
..pages.add().graphics.drawRectangle(
//Set pen dash pattern.
pen: PdfPen(PdfColor(255, 0, 0))..dashPattern = [4, 2, 1, 3],
bounds: Rect.fromLTWH(10, 10, 200, 100));
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();
Implementation
List<double> get dashPattern => _dashPattern;