pub fn switch( ui: &mut Ui<'_>, text: &str, on: bool, payload: impl Into<Value>, ) -> Key
A switch labelled text, keyed by it; see checkbox.
text
checkbox