argPattern property
Pattern for detecting parameters in a path name.
The pattern is matched against every path segment separately and must contain at least one group for extracting the argument name.
The default argument pattern will match any path segment wrapped in
paretheses {...}
and use their content as parameter name.
Example:
'/projects/{projectId}/settings' => args: {1: 'projectId'}
Implementation
static RegExp argPattern = RegExp(r'^{([^/]*)}$');