popUntil method

void popUntil(
  1. HarePage p
)

Implementation

void popUntil(HarePage p) {
  if (!_children.contains(p)) return;
  while (_children.isNotEmpty && _children.last != p) {
    _children.removeLast();
  }
  updateState();
}