writeNodeList method
Implementation
void writeNodeList(String label, List<TreeNode>? list) {
writeln('$label [');
if (list != null) {
depth += 1;
for (var node in list) {
node.visit(printer!);
}
depth -= 1;
writeln(']');
}
}