setSelectedItems<K> static method
Implementation
static List<TreeNode<K>> setSelectedItems<K>(
List<TreeNode<K>> nodes, Iterable<K> selectedItems) {
return replaceNodes(nodes, (node) {
if (node is TreeItem<K>) {
return node.updateState(selected: selectedItems.contains(node.data));
}
return null;
});
}