Router class
Router
Constructors
- Router()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addRoute(
Route route) → void - Add a route
-
combinations<
T> (List< T> set) → Iterable<List< T> > -
getRoutes(
) → UnmodifiableMapView< String, Map< String, Route> > - Get list of all the routes
-
match(
String method, String path) → Route? - Match a route for given method and path
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preparePath(
String path) → List - Prepare path
-
reset(
) → void - Reset router
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- placeholderToken → const String
- Placeholder token for route