toggleSelectNodes<K> static method
Implementation
static List<TreeNode<K>> toggleSelectNodes<K>(
List<TreeNode<K>> nodes, Iterable<TreeNode<K>> targets) {
return replaceNodes(nodes, (node) {
return targets.contains(node)
? node.updateState(selected: !node.selected)
: null;
});
}