Skip to main content

switch

Function switch 

Source
pub fn switch<'a, Message>(is_on: bool) -> Switch<'a, Message>
Available on crate feature switch only.
Expand description

Creates a switch that is on when is_on is true.