setState method

  1. @protected
void setState(
  1. S nextState
)

Set the BloC state.

Implementation

@protected
void setState(S nextState) {
  blocState = nextState;
  dispatchState(nextState);
}