lineCap property

PdfLineCap get lineCap

Gets or sets the line cap of the pen.

//Create a new PDF document.
PdfDocument document = PdfDocument()
  ..pages.add().graphics.drawRectangle(
      pen: PdfPen(PdfColor(255, 0, 0),
          dashStyle: PdfDashStyle.custom, lineCap: PdfLineCap.round)
        ..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

PdfLineCap get lineCap => _lineCap;
set lineCap (PdfLineCap value)

Implementation

set lineCap(PdfLineCap value) {
  _checkImmutability();
  _lineCap = value;
}