applyShader method Null safety

void applyShader(
  1. PdfShading shader
)

Apply a shader

Implementation

void applyShader(PdfShading shader) {
  // The shader needs to be registered in the page resources
  _page.addShader(shader);
  _buf.putString('${shader.name} sh\n');
}