BrowserPlatformLocation class Null safety

Delegates to real browser APIs to provide platform location functionality.

Inheritance

Constructors

BrowserPlatformLocation()
Default constructor for BrowserPlatformLocation.
const

Properties

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

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
go(int count) → void
Moves forwards or backwards through the history stack.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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