MemoryHistory class

Extension of History that stores all data in-memory

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

Inheritance

Constructors

MemoryHistory({Iterable initialEntries, int initialIndex: 0, int keyLength: 6, Confirmation getConfirmation })
Construct a MemoryHistory [...]

Properties

action Action
The current action
read-only, override
entries → Iterable<Location>
Get the array of entries stored in this MemoryHistory
read-only
index → int
Get the index of the current Location
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<MemoryHistory>
Stream of changes to this History list
read-only, override
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
canGo(int n) → bool
Checks if traveling n entries forward/backward is possible [...]
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