Store with a commands backup, allowing to cancel commands

Inheritance
  • Object
  • Store<C, M>
  • ReversibleStore

Constructors

ReversibleStore(InitialStateProvider initialStateProvider)

Constructor

Properties

asyncHistoryController → StreamController<AsyncCommand<M>>

command stream controller

read / write, inherited
asyncHistoryController → StreamController<AsyncCommand<M>>

command stream controller

read / write, inherited
currentState → M

model snapshot

read-only
hashCode → int

Get a hash code for this object.

read-only, inherited
history → List<Command<M>>

read-only
historyController → StreamController<Command<M>>

command stream controller

read / write, inherited
historyController → StreamController<Command<M>>

command stream controller

read / write, inherited
initialStateProvider InitialStateProvider

initial state provider function cf. InitialStateProvider

read / write, inherited
initialStateProvider InitialStateProvider

initial state provider function cf. InitialStateProvider

read / write, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
state$ → Stream<M>

read / write, inherited
state$ → Stream<M>

read / write, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

apply() → M

apply command history reducer

cancel() → void

cancel last command if exists and if

initHistory(Stream<Command<M>> hStream) → void

stock les commands ( sauf CancelCommand )

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
update(Command<M> c) → void

model update request via a new command command is added to history$

inherited
updateAsync(AsyncCommand<M> c) → void

inherited