pub fn toggle<Msg: Clone>(value: bool) -> Toggle<Msg>Expand description
Create a Toggle in the given state.
Shorthand for Toggle::new. Wire activation with Toggle::on_toggle
and an optional label with Toggle::label:
toggle( self.wifi_enabled )
.label( "Wi-Fi" )
.on_toggle( Msg::ToggleWifi )