Router class




hashCode int
The hash code for this object. [...]
read-only, inherited
notFoundHandler Handler
Generic handler for when a route has not been defined
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


define(String routePath, {Handler handler, TransitionType transitionType}) → void
Creates a PageRoute definition for the passed RouteHandler. You can optionally provide a default transition type.
generator(RouteSettings routeSettings) Route
Route generation method. This function can be used as a way to create routes on-the-fly if any defined handler is found. It can also be used with the MaterialApp.onGenerateRoute property as callback to create routes that can be used with the Navigator class.
match(String path) AppRouteMatch
Finds a defined AppRoute for the path value. If no AppRoute definition was found then function will return null.
matchRoute(BuildContext buildContext, String path, {RouteSettings routeSettings, TransitionType transitionType, Duration transitionDuration: const Duration(milliseconds: 250), RouteTransitionsBuilder transitionsBuilder}) RouteMatch
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
pop(BuildContext context) → void
printTree() → void
Prints the route tree so you can analyze it.
toString() String
Returns a string representation of this object.


operator ==(Object other) bool
The equality operator. [...]

Static Properties

appRouter Router