selectAll<K> static method

List<TreeNode<K>> selectAll<K>(
  1. List<TreeNode<K>> nodes
)

Implementation

static List<TreeNode<K>> selectAll<K>(List<TreeNode<K>> nodes) {
  return replaceNodes(nodes, (node) {
    return node.updateState(selected: true);
  });
}