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