call method

void call(
  1. List<TreeNode<T>> selectedNodes,
  2. bool multiSelect,
  3. bool selected
)

Implementation

void call(List<TreeNode<T>> selectedNodes, bool multiSelect, bool selected) {
  if (multiSelect) {
    if (selected) {
      onChanged(nodes.selectNodes(selectedNodes));
    } else {
      onChanged(nodes.deselectNodes(selectedNodes));
    }
  } else {
    onChanged(nodes.setSelectedNodes(selectedNodes));
  }
}