A [class@Gtk.
ListBoxRow] used to represent two states.
<picture> <source srcset="switch-row-dark.png" media="(prefers-color-scheme: dark)"> <img src="switch-row.png" alt="switch-row"> </picture>
The `AdapSwitchRow` widget contains a [class@Gtk.Switch] that allows the user to select between two states: "on" or "off". When activated, the row will invert its active state.
The user can control the switch by activating the row or by dragging on the switch handle.
See [class@Gtk.Switch] for details.
Example of an `AdapSwitchRow` UI definition: ```xml <object class="AdapSwitchRow"> <property name="title" translatable="yes" >Switch Row</property> <signal name="notify:active" handler="switch_row_notify_active_cb"/> </object> ```
The [property@SwitchRow:active] property should be connected to in order to monitor changes to the active state.
`AdapSwitchRow` uses the `GTK_ACCESSIBLE_ROLE_SWITCH` role.