addState function

dynamic addState (BaseState stateInstance)

This method is usefull to add a state passing stateInstance on demand.

Implementation

addState(BaseState stateInstance) {
  _store.addState(stateInstance);
}