setStrokePattern method Null safety

void setStrokePattern(
  1. PdfPattern pattern
)

Sets the stroke pattern for drawing

Implementation

void setStrokePattern(PdfPattern pattern) {
  // The shader needs to be registered in the page resources
  _page.addPattern(pattern);
  _buf.putString('/Pattern CS${pattern.name} SCN\n');
}