dashOffset property

double get dashOffset

Gets or sets the dash offset of the pen.

//Create a new PDF document.
PdfDocument document = PdfDocument()
  ..pages.add().graphics.drawRectangle(
      //Set pen dash offset.
      pen: PdfPen(PdfColor(255, 0, 0))..dashOffset = 0.5,
      bounds: Rect.fromLTWH(10, 10, 200, 100));
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();

Implementation

double get dashOffset => _dashOffset;
set dashOffset (double value)

Implementation

set dashOffset(double value) {
  _checkImmutability();
  _dashOffset = value;
}