state manager

Constructors

Store(InitialStateProvider initialStateProvider)

get initialState & init history$ stream

Properties

data → T

model snapshot

read-only
data$ → Stream<T>

model$ stream

read-only
hashCode → int

Get a hash code for this object.

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

commands history

read / write
history$ → Stream<Command<T>>

Commands Stream

read / write
initialStateProvider InitialStateProvider

initial state provider function cf. InitialStateProvider

read / write
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
state → T

currentState

read / write

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

apply() → T

apply command history reducer

cancel() → dynamic

cancel last command if exists

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<T> c) → void

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