children property

List<Node> children

A list of the children of this node.

This list should only be modified by using the addChild and removeChild methods.

// Iterate over a nodes children
for (Node child in myNode.children) {
  // Do something with the child
}

Implementation

List<Node> get children {
  _sortChildren();
  return _children;
}