pen property Null safety

PdfPen pen

Gets a pen that will be used to draw the element.

Implementation

PdfPen get pen {
  _pen ??= PdfPens.black;
  return _pen!;
}
void pen=(PdfPen value)

Sets a pen that will be used to draw the element.

Implementation

set pen(PdfPen value) {
  _pen = value;
}