Router class

Constructors

Router(Application app)

Properties

aliasMiddleware ↔ Map<String, Type>
getter/setter pair
app ↔ Application
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
middlewares ↔ List
getter/setter pair
routes → List<RouteEntry>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String uri, dynamic handler, [String? action]) → RouteEntry
discovery(Type controller) → void
findRouteByName(String name) → RouteEntry
flush() → dynamic
get(String uri, dynamic handler, [String? action]) → RouteEntry
group(RouteOptions options, Function registrar) → void
middleware(dynamic middlewares) → RouteEntry
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(String uri, dynamic handler, [String? action]) → RouteEntry
post(String uri, dynamic handler, [String? action]) → RouteEntry
prefix(String prefix) → RouteEntry
put(String uri, dynamic handler, [String? action]) → RouteEntry
register(RouteEntry route) → dynamic
runRoute(Request request, RouteEntry route) → FutureOr
toResponse(Request request, dynamic dynamicResponse) → Response
toString() → String
A string representation of this object.
inherited
via(List<String> methods, String uri, dynamic handler, [String? action]) → RouteEntry

Operators

operator ==(Object other) → bool
The equality operator.
inherited