setLineCap method

void setLineCap(
  1. PdfLineCap cap
)

Set line starting and ending cap type

Implementation

void setLineCap(PdfLineCap cap) {
  assert(() {
    if (_page.pdfDocument.verbose) {
      _buf.putComment('setLineCap $cap');
    }
    return true;
  }());

  _buf.putString('${cap.index} J\n');
}