deselectNodes<K> static method

List<TreeNode<K>> deselectNodes<K>(
  1. List<TreeNode<K>> nodes,
  2. Iterable<TreeNode<K>> deselectedNodes
)

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;
  });
}