createRenderSVG method
RenderBoxModel
createRenderSVG({
- RenderBoxModel? previous,
- bool isRepaintBoundary = false,
override
Implementation
@override
RenderBoxModel createRenderSVG({RenderBoxModel? previous, bool isRepaintBoundary = false}) {
RenderSVGRoot root = RenderSVGRoot(renderStyle: renderStyle)..viewBox = viewBox..ratio = ratio;
if (previous is RenderSVGRoot) {
List<RenderBox> children = previous.getChildren();
previous.removeAll();
root.addAll(children);
}
return root;
}