Route class

Basic route definition structure.

Constructors

Route({required HttpMethod method, required String path, List<HttpMiddleware> middleware = const [], required Handler handler})
Creates a new route definition.

Properties

handler Handler
Route handler.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
method HttpMethod
HTTP method.
getter/setter pair
middleware List<HttpMiddleware>
Middleware chain.
getter/setter pair
path String
Path pattern (static or dynamic with {param:type}).
getter/setter pair
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