A component for toggling or switching values on or off
Constructs a Switch from the arguments
onText is the text that will be displayed when the switch is "on", or checked is trueoffText is the text that will be displayed when the switch is "off", or checked is falseConfigures the position of the text to be on the left of the switch
The default position of the text is to the right of the switch.
Configures the text display when the switch is "on" or "off"
Set the checked value to true
Set the checked value to false
Given the internal checked state, set it to the opposite
Opaque
Switchelement that can producemsgmessages