pub fn remove_flag(flag: &str, widget: &mut WidgetContainer) {
    if !widget.has::<bool>(flag) {
        return;
    }

    widget.set(flag, false);

    if let Some(selector) = widget.try_get_mut::<Selector>("selector") {
        selector.remove_state(flag);
    }

    widget.update(false);
}
/// Sets the given property flag to `false` and clears the state of
/// the widgets selector.
Sets the given property flag to `false` and clears the state of
the widgets selector.
Sets the given property flag to ` false ` and clears the state of the widgets selector .
pub fn remove_flag(flag: &str, widget: &mut WidgetContainer) {
    if !widget.has::<bool>(flag) {
        return;
    }
    widget.set(flag, false);
    if let Some(selector) = widget.try_get_mut::<Selector>("selector") {
        selector.remove_state(flag);
    }
    widget.update(false);
}
pub fn remove_flag ( flag : & str , widget : & mut WidgetContainer ) { if ! widget . has :: < bool > ( flag ) { return ; } widget . set ( flag , false ) ; if let Some ( selector ) = widget . try_get_mut :: < Selector > ( " " ) { selector . remove_state ( flag ) ; } widget . update ( false ) ; }
Sets the given property flag to `false` and clears the state of
the widgets selector.
Sets the given property flag to ` false ` and clears the state of the widgets selector .
flag
&str
widget
&mut WidgetContainer