BrowserPlatformLocation class

Delegates to real browser APIs to provide platform location functionality.

Implemented types

Constructors

BrowserPlatformLocation()
Default constructor for BrowserPlatformLocation.
const

Properties

hash String
The hash] part of the URL in the browser address bar.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
pathname String
The pathname part of the URL in the browser address bar.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
The query part of the URL in the browser address bar.
no setteroverride
state Object?
The state in the current history entry.
no setteroverride

Methods

addPopStateListener(EventListener fn) → void
Registers an event listener for the popstate event.
override
getBaseHref() String?
The base href where the Flutter app is being served.
override
getOrCreateDomEventListener(EventListener fn) → dynamic
go(int count) → void
Moves forwards or backwards through the history stack.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pushState(Object? state, String title, String url) → void
Adds a new entry to the browser history stack.
override
removePopStateListener(EventListener fn) → void
Unregisters the given listener (added by addPopStateListener) from the popstate event.
override
replaceState(Object? state, String title, String url) → void
Replaces the current entry in the browser history stack.
override
toString() String
A string representation of this object.
inherited

Operators

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