pop method

Implementation

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