buildCustom method
_Svg
buildCustom({
- ChildWidgetBuilder? childBuilder,
- required BuildContext context,
- required JsonWidgetData data,
- Key? key,
Custom builder that subclasses must override and implement to return the actual Widget to be placed on the tree.
Implementation
@override
_Svg buildCustom({
ChildWidgetBuilder? childBuilder,
required BuildContext context,
required JsonWidgetData data,
Key? key,
}) {
final model = createModel(
childBuilder: childBuilder,
data: data,
);
final themeDecoded = _decodeSvgTheme(
value: model.theme,
);
return _Svg(
alignment: model.alignment,
allowDrawingOutsideViewBox: model.allowDrawingOutsideViewBox,
asset: model.asset,
clipBehavior: model.clipBehavior,
color: model.color,
colorFilter: model.colorFilter,
excludeFromSemantics: model.excludeFromSemantics,
fit: model.fit,
headers: model.headers,
height: model.height,
image: model.image,
matchTextDirection: model.matchTextDirection,
package: model.package,
semanticsLabel: model.semanticsLabel,
theme: themeDecoded,
url: model.url,
width: model.width,
);
}