pub fn checked(child: impl UiNode, checked: impl IntoVar<bool>) -> impl UiNode
P Toggle cycles between true and false, updating the variable.
P
true
false
Note that you can read the checked state of the widget using is_checked.
is_checked