UseReducer<T> constructor
UseReducer<T> (
- Reducer<
T> reducer, - T initialState, [
- ReactterHookManager? context
Implementation
UseReducer(
this.reducer,
T initialState, [
ReactterHookManager? context,
]) : _state = UseState<T>(initialState),
super(context) {
UseEffect(update, [_state]);
}