DaravelRouter class

Constructors

DaravelRouter()

Properties

app Core
latefinal
hashCode int
The hash code for this object.
no setterinherited
router → Router
Get router
no setter
routes List<DaravelRoute>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(String method, String path, Function handler) DaravelRouteParams
Define a route with custom method
any(String path, Function handler) DaravelRouteParams
Define a route for all HTTP methods
delete(String path, Function handler) DaravelRouteParams
Define a route with the DELETE method
domain(String domain) DaravelRouter
get(String path, Function handler) DaravelRouteParams
Define a route with the GET method
group(String path, dynamic callback(DaravelRouter)) → void
Define a route with the HEAD method
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
options(String path, Function handler) DaravelRouteParams
Define a route with the OPTIONS method
patch(String path, Function handler) DaravelRouteParams
Define a route with the PATCH method
post(String path, Function handler) DaravelRouteParams
Define a route with the POST method
put(String path, Function handler) DaravelRouteParams
Define a route with the PUT method
setApp(Core app) → void
toString() String
A string representation of this object.
inherited

Operators

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