insert method

bool insert(
  1. dynamic id
)

Returns true if this FSM is in the given state.

Implementation

bool insert( id ) {
	final state = get( id );
	return ( state == currentState );
}