writeNodeList method

void writeNodeList(
  1. String label,
  2. List<TreeNode>? list
)

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(']');
  }
}