Store

Store interface that defines the contract for a state container.

Properties

hashCode int
The hash code for this object.
no setterinherited

runtimeType Type

A representation of the runtime type of the object.
no setterinherited

Methods

dispatch(Action action) → void
Dispatches an action. This is the only way to trigger a state change.

getState() → S

Returns the current state tree of your application.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a nonexistent method or property is accessed.
inherited

replaceReducer(Reducer<S> nextReducer) → void

Replaces the reducer currently used by the store to calculate the state.

subscribe(StateListener<S> listener) Unsubscribe

Adds a change listener. It will be called any time an action is dispatched, and some part of the state tree may potentially have changed. Returns an unsubscribe function.

toString() String

A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited