path top-level constant

Path const path

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 = Path();