stateMachineByName method
Returns a StateMachine with the given name, or null if no state machine with that name exists in the artboard
Implementation
StateMachineController? stateMachineByName(String name,
{core.OnStateChange? onChange}) =>
StateMachineController.fromArtboard(this, name, onStateChange: onChange);