createSvgElement function
Implementation
Element createSvgElement(String name, [BindingContext? context]) {
Element element;
if (name == SVG) {
element = FlutterSvgElement(context);
} else {
element = FlutterSVGChildElement(context);
}
element.tagName = name;
element.namespaceURI = svgElementUri;
return element;
}