StateMachineBase constructor Null safety

StateMachineBase()