remove method

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

Implementation

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

  Page? page = _findPage(route);
  if (page != null) {
    _stack.remove(page);
  }
}