Function iced::widget::toggler

pub fn toggler<'a, Message, Renderer>(
    label: impl Into<Option<String>>,
    is_checked: bool,
    f: impl Fn(bool) -> Message + 'a
) -> Toggler<'a, Message, Renderer>where
    Renderer: Renderer,
    <Renderer as Renderer>::Theme: StyleSheet,
Expand description

Creates a new Toggler.