clear static method

void clear([
  1. String? route
])

Implementation

static void clear([String? route]) {
  i._routes.clear();
  final mRoute = route.trimmedRoute;
  if (!_isIgnorableRoute(mRoute) && _isSupportedRoute(mRoute)) {
    if (!i._routes.contains(mRoute)) {
      i._routes.add(mRoute);
    }
  }
  i.notifyListeners();
}