paint method
Implementation
@override
void paint(Context context, PdfRect box) {
Widget.draw(
SvgImage(svg: svg, fit: fit, alignment: alignment),
offset: box.offset,
context: context,
constraints: BoxConstraints.tight(box.size),
);
}