- @override
Returns a string representation of this object.
Source
@override
String toString({bool showInstances: false}) {
var buff = new StringBuffer();
void doNode(LocalNode node, [int depth = 0]) {
Path p = new Path(node.path);
buff.write("${' ' * depth}- ${p.name}");
if (showInstances) {
buff.write(": ${node}");
}
buff.writeln();
for (var child in node.children.values) {
doNode(child, depth + 1);
}
}
doNode(root);
return buff.toString().trim();
}