Route class
Annotate methods with appropirate HTTP Method and path
@Route.get('/api/v0/todos')
Future<List<Todo>> getTodos();
Parameter replacement support
@Route.get('/api/v0/todo/{id}')
Future<Todo> getTodo(int id);
Constructors
- Route(String method, String path)
-
const
- Route.delete(String path)
-
const
- Route.get(String path)
-
const
- Route.patch(String path)
-
const
- Route.post(String path)
-
const
- Route.put(String path)
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited