param method

String param(
  1. String name
)

The path parameter name; throws when the route has none.

Implementation

String param(String name) => pathParams[name]!;