pathParameters property
Extracts all path parameter names defined in pathTemplate.
Identifies tokens starting with : (e.g. ['userId', 'postId'] for '/users/:userId/posts/:postId').
final params = contract.pathParameters;
Implementation
List<String> get pathParameters {
final matches =
RegExp(r':([a-zA-Z_][a-zA-Z0-9_]*)').allMatches(pathTemplate);
return matches.map((m) => m.group(1)!).toList();
}