variables property

Map<String, String> variables
read / write

A Map of path variables.

If a path has variables (indicated by the :variable syntax), the matching segments for the path variables will be stored in the map. The key will be the variable name (without the colon) and the value will be the path segment as a string.

Consider a match specification /users/:id. If the evaluated path is /users/2 This property will be {'id' : '2'}.


Map<String, String> variables = {}