Location class

Abstraction of Location class

This class is a subset of the HTML5 Location class that allows support of a Location class without relying on the browser.

Constructors

Location({String pathname: '/', String hash: '', String key, String search: '', dynamic state })
Construct a Location. [...]
Location.copy(Location other, { String pathname, String hash, String key, String search, dynamic state })
Construct a copy of an existing Location. [...]
Location.fromMap(Map<String, dynamic> map)
Construct a Location using an existing map [...]
Location.relativeTo(Location base, { String pathname, String hash, String key, String search, dynamic state })
Construct a Location relative to base [...]

Properties

hash → String
The hash fragment of this Location [...]
read-only
hashCode → int
Custom hashCode implementation [...]
read-only
key → String
A unique string representing this Location
read-only
path → String
The String representation of this Location [...]
read-only
pathname → String
The path fragment of this Location [...]
read-only
The search fragment of this Location [...]
read-only
state → dynamic
Extra data associated with this Location that does not reside in its path [...]
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

relateTo(Location base) → void
Resolve this Location relative to base [...]
toString() → String
Custom toString implementation [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

operator ==(dynamic l) → bool
Custom equality operator [...]