tree method
void
tree(])
Implementation
void tree(
Comp<T> node,
num x,
num y,
num fontSize,
String prefix,
ColorD color,
[List<int>? yRef]
) {
yRef ??= [y.toInt()];
bool isLast = false;
final parent = node.getParentAs<IsAnyComponentManagable<T>>();
final comps = parent!.getComponents().toList();
if (comps.indexOf(node) == comps.length - 1) {
isLast = node.getComponents().isEmpty;
}
_drawComponentTree(node, x, y, fontSize, prefix, color, isLast, yRef);
}