Path constructor

const Path([
  1. String? name
])

Provides a parameter in the url.

Declared as follows inside the path String:

@Get(path: '/{param}')

Available inside method declaration:

@Get(path: '/{param}')
Future<Response> fetch(@Path() String param);

Implementation

const Path([this.name]);