validNextState method
Is ProbeState a valid next state for this probe?
For example:
- if the current state of this probe is
initializedthen a valid next state isresumed. - if the current state of this probe is
resumedthen a valid next state ispaused. - if the current state of this probe is
resumedtheninitializedis not a valid next state.
Implementation
bool validNextState(ProbeState nextState) =>
_stateMachine.validNextState(nextState);