getChildren static method

List<Tree> getChildren(
  1. Tree t
)

Return ordered list of all children of this node */

Implementation

static List<Tree> getChildren(Tree t) {
  final kids = <Tree>[];
  for (var i = 0; i < t.childCount; i++) {
    kids.add(t.getChild(i)!);
  }
  return kids;
}