dispatch<A extends ReactterAction> method

dynamic dispatch<A extends ReactterAction>(
  1. A action
)

Receives a ReactterAction and sends it to reducer method for resolved

Implementation

dispatch<A extends ReactterAction>(A action) =>
    _state.value = reducer(_state.value, action);