StateMachine<T> constructor

StateMachine<T>([
  1. T? initial
])

Implementation

StateMachine([T? initial]) : _state = initial;