String outerHtml

Source

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