parseClipPath method
Implementation
SVGClipPath? parseClipPath() {
NodeList nodeList = childNodes;
Iterator iterator = nodeList.iterator;
while (iterator.moveNext()) {
if (iterator.current is SVGRectElement) {
RenderBox? renderBox = (iterator.current as SVGRectElement).renderer;
if (renderBox is RenderSVGRect) {
return SVGClipPath(renderBox.asDefNodePath(), BoxShape.rectangle);
}
} else if (iterator.current is SVGCircleElement) {
RenderBox? renderBox = (iterator.current as SVGCircleElement).renderer;
if (renderBox is RenderSVGCircle) {
return SVGClipPath(renderBox.asDefNodePath(), BoxShape.circle);
}
}
}
return null;
}