revealNode method

void revealNode(
  1. TreeNodeId id
)

Expand only the node and its ancestors so a deep node is revealed.

Implementation

void revealNode(TreeNodeId id) {
  for (final a in TreeOps.ancestorsOf<T>(_roots, id)) {
    _expanded.add(a);
  }
  _expanded.add(id);
  _focused = id;
  notifyListeners();
}