prepare method
Prepare the object to be written to the stream
Implementation
@override
void prepare() {
super.prepare();
params['/Shading'] = shading.ref();
if (graphicState != null) {
params['/ExtGState'] = graphicState!.output();
}
}