Skip to main content

switch

Function switch 

Source
pub fn switch<'a, Message>(is_on: bool) -> Switch<'a, Message>
Expand description

Creates a switch that is on when is_on is true.