paint method

  1. @override
void paint(
  1. Context context,
  2. PdfRect box
)
override

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),
  );
}