pop method

void pop([
  1. T? result
])

Remove this page. Marks as popped, detaches from the router, and completes the future with result.

Implementation

void pop([T? result]) {
  popped = true;
  onDetach();
  if (_completer?.isCompleted != true) {
    _completer?.complete(result);
  }
}