Signature for a predicate that determines whether a route meets criteria.
typedef RoutePredicate = bool Function(Route route);