Router class

Inheritance

Constructors

Router({VoyagerFactory<Voyager> voyagerFactory: _defaultFactory })

Properties

voyagerFactory VoyagerFactory<Voyager>
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

find(String routerPath, { Voyager parent, VoyagerArgument argument }) Voyager
findCached(String routerPath) Voyager
generator({int routeType: materialRoute }) RouteFactory
getGlobalEntity(String key) → dynamic
getPlugins() → Map<String, RouterPlugin<Voyager>>
registerConfig<T extends Voyager>(String path, VoyagerConfig<T> voyagerConfig, [ ProgrammaticVoyagerFactory<T> voyagerFactory ]) → void
registerGlobalEntity(String key, dynamic value) Router
registerPath(RouterPath path) → void
registerPlugin(RouterPlugin<Voyager> plugin) Router
clearCache() → void
inherited
globalParam(String key, dynamic object) AbstractRouter
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
outputFor(String url, { RouteParam extras }) Voyager
Open a map'd URL set using {@link #map(String, Class)} or {@link #map(String, BundleBuilder)} [...]
inherited
paramsForUrl(String url) RouterParams<Voyager, RouteParam>
Takes a url (i.e. "/users/16/hello") and breaks it into a {@link RouterParams} instance where each of the parameters (like ":id") has been parsed.
inherited
registerBuilder(String format, OutputBuilder<Voyager, RouteParam> builder) → void
Map a URL to an OutputBuilder [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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

Constants

cupertinoRoute → const int
1
materialRoute → const int
0