pop method

Implementation

RouteNode? pop() {
  if (next case final next?) {
    return route.updateWithNext(next: next.pop(), value: value);
  }
  return null;
}