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

hashCode int
The hash code for this object.
no setterinherited
method String
final
path String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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