String toStringDeep([String prefixLineOne = '', String prefixOtherLines = '' ])

A detailed, textual description of this element, includings its children.

Source

String toStringDeep([String prefixLineOne = '', String prefixOtherLines = '']) {
  String result = '$prefixLineOne$this\n';
  List<Element> children = <Element>[];
  visitChildren(children.add);
  if (children.isNotEmpty) {
    Element last = children.removeLast();
    for (Element child in children)
      result += '${child.toStringDeep("$prefixOtherLines\u251C", "$prefixOtherLines\u2502")}';
    result += '${last.toStringDeep("$prefixOtherLines\u2514", "$prefixOtherLines ")}';
  }
  return result;
}