Class Store<State>
Inheritance
System.Object
Store<State>
Namespace: Unity.UIWidgets
Syntax
public class Store<State>
Type Parameters
| Name | Description |
|---|---|
| State |
Constructors
Store(Reducer<State>, State, Middleware<State>[])
Declaration
public Store(Reducer<State> reducer, State initialState = null, params Middleware<State>[] middleware)
Parameters
| Type | Name | Description |
|---|---|---|
| Reducer<State> | reducer | |
| State | initialState | |
| Middleware<State>[] | middleware |
Fields
stateChanged
Declaration
public StateChangedHandler<State> stateChanged
Field Value
| Type | Description |
|---|---|
| StateChangedHandler<State> |
Properties
dispatcher
Declaration
public Dispatcher dispatcher { get; }
Property Value
| Type | Description |
|---|---|
| Dispatcher |
Methods
getState()
Declaration
public State getState()
Returns
| Type | Description |
|---|---|
| State |