hasSegments property

bool get hasSegments

true when the route has params and every part between slashes is plain text or one whole required param, like /users/{id}/posts. Then matchSegments gives the same answer as pattern, with no regex. False for {id?}, {path*}, Route.where, a part like v{id}, and text with regex marks in it (eg. a.b).

Implementation

bool get hasSegments {
  _compile();
  return _segments != null;
}