Represents the current state of a RouterNavigator view.

Available since

1.0.0

.

See also:

Constructor

@:value({ data : null, historyState : null, params : null, pathname : null, pattern : null })new(?pattern:String, ?pathname:String, ?params:Map<String, String>, ?historyState:Dynamic, ?data:Dynamic)

Creates a new RouteState object with the given arguments.

Available since

1.0.0

.

Variables

data:Dynamic

Data to restore that was saved with Route.saveData().

Available since

1.0.0

.

historyState:Dynamic

The state data restored from the HTML history API.

Available since

1.0.0

.

params:Map<String, String>

A set of key/value pairs parsed from the current URL using the dynamic segments of the pattern.

Available since

1.0.0

.

pathname:String

The portion of the URL that matched the pattern.

Available since

1.0.0

.

pattern:String

The pattern used to match this route.

Available since

1.0.0

.

urlVariables:URLVariables

Returns an URLVariables object constructed from the current query parameters.

If the query parameters cannot be parsed by URLVariables, returns an empty URLVariables object.

Available since

1.0.0

.