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