routeExists method

bool routeExists(
  1. String route
)

Checks if any data exists for a given route.

  • route: The route to check.

Returns:

  • true if the route exists, or false if it does not.

Implementation

bool routeExists(String route) {
  return _data.containsKey(route);
}