containsRoute static method

bool containsRoute(
  1. String route
)

Check if the router contains specific route

Implementation

static bool containsRoute(String route) {
  return NyNavigator.instance.router.containsRoutes([route]);
}