Draws behind and in front of child. Coordinates are local to the box.
child
typedef PdfCustomPainter = void Function(PdfCanvas canvas, PwSize size);