String outerHtml

Source

String get outerHtml {
  final container = new DivElement();
  final SvgElement cloned = this.clone(true);
  container.children.add(cloned);
  return container.innerHtml;
}