HashRouter class

hash router allows for routing in normal .html files; useful for testing

Inheritance

Constructors

HashRouter({required bool onError(Url<StateObject> url)})
HashRouter.test({required bool onError(Url<StateObject> url)})

Properties

current Route<StateObject>?
no setterinherited
errorRoute ErrorRoute
finalinherited
hashCode int
The hash code for this object.
no setterinherited
root String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

go([dynamic state]) → void
handling popState and initial
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redirect<T extends StateObject>({required String from, required Route<T> to, String? title}) Route<T>
shortcut to register existing route with different path
inherited
register<T extends StateObject>(String path, String name, bool onActivate(Url<T> url), {T fromMap(Map)?}) Route<T>
creates a route from the parameters, adds it to the set of routes and returns it
inherited
toString() String
A string representation of this object.
inherited

Operators

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