selectAll<K> static method
Selects all nodes in the tree.
Parameters:
nodes(List<TreeNode<K>>, required): Tree nodes.
Returns: List<TreeNode<K>> — tree with all nodes selected.
Implementation
static List<TreeNode<K>> selectAll<K>(List<TreeNode<K>> nodes) {
return replaceNodes(nodes, (node) {
return node.updateState(selected: true);
});
}