pop method

dynamic pop(
  1. Route route,
  2. Route? previousRoute
)

Implementation

pop(Route route, Route? previousRoute) {
  if (_stack.isEmpty) {
    return;
  }

  Page? page = _findPage(route);
  if (page != null) {
    _task.addpop(page, page.previous);
  }
  _removeAllAfter(page);
}