addState method
- StateBase stateInstance
This method is usefull to add a state passing stateInstance on demand.
Implementation
void addState(StateBase stateInstance) {
removeStateByStateName(stateInstance.name, false);
_states.add(stateInstance);
dispatch(Action(type: 'add_state(${stateInstance.name})'));
}