flatList method

List<TreeNode<Object?>> flatList()

Returns all the nodes attached to this tree in a flat list. The nodes are sorted in no particular order.

Implementation

List<TreeNode> flatList() {
  return _nodeMap.values.toList();
}