state

open var state: Boolean

The backend state that is controlled by the switch.

Applications should usually set the property@Gtk.Switch:active property, except when indicating a change to the backend state which occurs separately from the user's interaction.

See signal@Gtk.Switch::state-set for details.