pop static method

void pop([
  1. String? route
])

Implementation

static void pop([String? route]) {
  final mRoute = route.trimmedRoute;
  if (_isIgnorableRoute(mRoute)) return;
  if (!_isSupportedRoute(mRoute)) return;
  if (mRoute == null) {
    i._routes.removeLast();
  } else {
    i._routes.remove(mRoute);
  }
  i.notifyListeners();
}