bool hasRouteMatch(String path) { final match = routeInformationParser.configuration.findMatch(Uri(path: path)); if (match.matches.isNotEmpty) return true; return false; }