flushPath method

void flushPath()

Implementation

void flushPath() {
  if (_currentPath != '') {
    _svgNode.setAttribute('d', _currentPath);
    _svgNode.setAttribute('style', _currentStyle);
    svg.appendChild(_svgNode);
    _svgNode = SVGDocument();
  }
  _currentPath = '';
  _currentStyle = '';
}