selectNode<K> static method
Implementation
static List<TreeNode<K>> selectNode<K>(
List<TreeNode<K>> nodes, TreeNode<K> target) {
return replaceNodes(nodes, (node) {
return node == target ? node.updateState(selected: true) : null;
});
}