updateState method

void updateState(
  1. S newState
)

Send|Update state for UI

Implementation

void updateState(S newState) {
  emit(newState);
}