children method

Iterable<TreeNodeInfo> children()

The child nodes of this node.

Implementation

Iterable<TreeNodeInfo> children() {
  return switch (this) {
    CompositeNodeInfo(children: var c) => c,
    _ => const <TreeNodeInfo>[],
  };
}