setFillPattern method Null safety

void setFillPattern(
  1. PdfPattern pattern
)

Sets the fill pattern for drawing

Implementation

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