ReducerHook<TState, TAction, TInit> class
The return value of useReducer.
The current state is available via state and action dispatcher is available via dispatch.
Note: there are two rules for using Hooks:
- Only call Hooks at the top level.
- Only call Hooks from inside a DartFunctionComponent.
Learn more: reactjs.org/docs/hooks-reference.html#usereducer.
- Annotations
-
- @sealed
Properties
- hashCode â int
-
The hash code for this object.
no setterinherited
- runtimeType â Type
-
A representation of the runtime type of the object.
no setterinherited
- state â TState
-
The current state map of the component.
no setter
Methods
-
dispatch(
TAction action) â void -
Dispatches
action
and triggers stage changes. -
noSuchMethod(
Invocation invocation) â dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) â String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) â bool -
The equality operator.
inherited