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