visitChildren<R> method

void visitChildren <R>(
  1. Visitor<R> v
)

Lets Visitor v visit children nodes of this node.

Implementation

void visitChildren<R>(Visitor<R> v) => _children.forEach(
      (child) {
        if (child is List<Node>) {
          _visitAll(child, v);
        } else if (child is Node) {
          _visitOne(child, v);
        }
      },
    );