popRoute<T> method

void popRoute<T>(
  1. T? result
)

Implementation

void popRoute<T>(T? result) {
  stack.last().popCompleter.complete(result);

  if (stack.pop() case final popped?) {
    setStack(popped);
  } else {
    SystemNavigator.pop();
  }
}