UseReducer<T> constructor

UseReducer<T>(
  1. Reducer<T> reducer,
  2. T initialState, [
  3. ReactterHookManager? context
])

Implementation

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