Route class final

One route in a router.

Constructors

Route(String method, String path, Handler handler)
Declares a route serving method at path.
const
Route.mount(String path, Handler handler)
Declares a subtree handled by handler, rooted at path.
const

Properties

handler → Handler
The handler to run.
final
hashCode → int
The hash code for this object.
no setterinherited
isMount → bool
Whether handler owns everything below path.
final
method → String
The uppercase HTTP method, or anyMethod.
final
path → String
The path, relative to the enclosing router.
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

Constants

anyMethod → const String
The method a route matches when it serves every method.