PathFunction typedef
Generates a path by populating a path specification with args.
The args should map parameter name to value.
Throws an ArgumentError if any required arguments are missing, or if any arguments don't match their parameter's regular expression.
Implementation
typedef PathFunction = String Function(Map<String, String> args);