SvgImage.icon constructor
Instantiates a widget rendering an SVG picture from a SvgData.
Implementation
SvgImage.icon(
SvgData data, {
super.key,
this.alignment = Alignment.center,
this.fit = BoxFit.contain,
double? width,
double? height,
this.placeholderBuilder,
this.semanticsLabel,
this.excludeFromSemantics = false,
}) : asset = data.asset,
file = null,
bytes = null,
width = width ?? data.width,
height = height ?? data.height;