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