UrlStrategy class abstract
Represents and reads route state from the browser's URL.
By default, the HashUrlStrategy subclass is used if the app doesn't specify one.
- Implementers
Constructors
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
-
addPopStateListener(
PopStateListener fn) → VoidCallback -
Adds a listener to the
popstate
event and returns a function that, when invoked, removes the listener. -
getPath(
) → String - Returns the active path in the browser.
-
getState(
) → Object? - The state of the current browser history entry.
-
go(
int count) → Future< void> - Moves forwards or backwards through the history stack.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareExternalUrl(
String internalUrl) → String - Given a path that's internal to the app, create the external url that will be used in the browser.
-
pushState(
Object? state, String title, String url) → void - Push a new history entry.
-
replaceState(
Object? state, String title, String url) → void - Replace the currently active history entry.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited