paintBackground method
Implementation
@override
void paintBackground(Context context) {
super.paint(context);
if (drawSurface) {
_paintShape(context);
if (surfaceOpacity != 1) {
context.canvas
..saveContext()
..setGraphicState(
PdfGraphicState(opacity: surfaceOpacity),
);
}
context.canvas
..setFillColor(color)
..fillPath();
if (surfaceOpacity != 1) {
context.canvas.restoreContext();
}
}
}