push static method

void push(
  1. String? route
)

Implementation

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