The switch's toggle() method doesn't fire the MVVM change event, nor does it update the viewModel property.
Setting the viewModel property obviously updates the viewModel property, but it too doesn't fire the change event.
Only clicking on the switch seems to fire it.
Both of the methods do change the visual state appropriately, and also end up changing the aria-checked value. Here is a dojo.
Is there a way to programmatically change the switch that also fires the change event?