That can be simulated at the demo app. At the "Clickable Items with Secondary Controls" section, when the user clicks directly on the switch (instead of any other part of the MaterialCollectionItem), the change event is triggered, the toast appears, but the switch doesn't switch states (from on to off or from off to on).
When clicked on any part of the MaterialCollectionItem, the switch behave accordingly.
Tested on Firefox and Chrome.