SvgImage constructor
SvgImage({})
Implementation
factory SvgImage({
required String svg,
BoxFit fit = BoxFit.contain,
Alignment alignment = Alignment.center,
bool clip = true,
double? width,
double? height,
PdfColor? colorFilter,
}) {
final xml = XmlDocument.parse(svg);
final parser = SvgParser(
xml: xml,
colorFilter: colorFilter,
);
return SvgImage._fromParser(
parser,
fit,
alignment,
clip,
width,
height,
);
}