BrowserHistory class

Extension of History that proxies calls to the Browser

This class includes extends all functionality of the base History class and adds extra functionality only supported in this variant.

Inheritance

Constructors

BrowserHistory({String basename: '', bool forcedRefresh: false, int keyLength: 6, Confirmation getConfirmation, Window window })

Properties

action Action
The current action
read-only, override
basename → String
Prefix added to paths if it isn't already included
read-only
isBlocking → bool
Whether or not this History is in blocking mode
read-only, override
length → int
The number of entries in the History list
read-only, override
location Location
The current location
read-only, override
onChange → Stream<BrowserHistory>
Stream of changes to this History list
read-only, override
willForceRefresh → bool
If changes to this will force a Browser page refresh
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

block(dynamic prompt) → void
Enable blocking mode with the given prompt [...]
override
go(int n) → Future<Null>
Travel n entries forward or backward on the History list [...]
override
push(dynamic path, [ dynamic state ]) → Future<Null>
Push an entry (String or Location) on to the History list [...]
override
replace(dynamic path, [ dynamic state ]) → Future<Null>
Replace the current entry with a one (String or Location) on to the History list [...]
override
unblock() → void
Disable blocking mode [...]
override
goBack() → void
Travel to the previous entry on the History list (if it exists) [...]
inherited
goForward() → void
Travel to the next entry on the History list (if it exists) [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited