You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/orbtk/orbtk_core/src/widget_base
    
    the code of the file until where you have to start completion: //! The `base_widget` defines common properties that can be inherited by any widget module.

use std::{fmt::Debug, rc::Rc};

use dces::prelude::{Compo
    
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);
}