select method

void select(
  1. TreeNodeId id
)

Implementation

void select(TreeNodeId id) {
  final n = node(id);
  if (n == null || !n.selectable) return;
  _selected = id;
  _focused = id;
  _anchor = id;
  _selection
    ..clear()
    ..add(id);
  notifyListeners();
}