changeCurrentChange method

void changeCurrentChange(
  1. ID stateID
)

Implementation

void changeCurrentChange(ID stateID) {
  final states = {...state.states};
  assert(states.containsKey(stateID), 'State not found');
  emit(state.updateState(states[stateID]!));
}