setLineCap method Null safety

void setLineCap(
  1. PdfLineCap cap
)

Set line starting and ending cap type

Implementation

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