collapseNode<K> static method
Implementation
static List<TreeNode<K>> collapseNode<K>(
List<TreeNode<K>> nodes, TreeNode<K> target) {
return replaceNodes(nodes, (node) {
return node == target ? node.updateState(expanded: false) : null;
});
}