ancestors method
Lazily-computes the ancestor nodes of this node.
Implementation
Iterable<TreeNodeInfo> ancestors() sync* {
var nextAncestor = parent();
while (nextAncestor != null) {
yield nextAncestor;
nextAncestor = nextAncestor.parent();
}
}