A Material Design Switch control:

The Value of the control sets the variable name to be used. If the variable name starts with a “T” (e.g. True), then the switch will be on, otherwise it will be off.
This is a dynamic control, so changing the variable value will automatically change the value of the control.
Any Select Action element applied, interpreted as an action graph, will be used when the control is changed (whether the value is on or off). It is usual when using Invoke Model to pass the controls variable as a Parameter to the call, as well as any other parameters desired.
Styling may be applied by the use of CSS as required.