fn propogate_message(&mut self, message: &Msg) -> bool {
        let state = self.state();

        let mut should_resize = false;

        for child in self.children() {
            match child {
                crate::ViewElement::View(view) => {
                    should_resize |= view.propogate_message(message);
                }

                crate::ViewElement::Widget(widget) => {
                    widget.handle_message(message, state.clone().borrow_mut());
                    
                    should_resize |= widget.check_if_should_resize_then_reset_to_false();
                }
            }
        }

        should_resize
    }
// Returns true if the view should resize
Returns true if the view should resize
Returns true if the view should resize
fn propogate_message(&mut self, message: &Msg) -> bool {
        let state = self.state();
        let mut should_resize = false;
        for child in self.children() {
            match child {
                crate::ViewElement::View(view) => {
                    should_resize |= view.propogate_message(message);
                }
                crate::ViewElement::Widget(widget) => {
                    widget.handle_message(message, state.clone().borrow_mut());
                    should_resize |= widget.check_if_should_resize_then_reset_to_false();
                }
            }
        }
        should_resize
    }
fn propogate_message ( & mut self , message : & Msg ) -> bool { let state = self . state ( ) ; let mut should_resize = false ; for child in self . children ( ) { match child { crate :: ViewElement :: View ( view ) => { should_resize |= view . propogate_message ( message ) ; } crate :: ViewElement :: Widget ( widget ) => { widget . handle_message ( message , state . clone ( ) . borrow_mut ( ) ) ; should_resize |= widget . check_if_should_resize_then_reset_to_false ( ) ; } } } should_resize }
Returns true if the view should resize
Returns true if the view should resize
&mut self
message
&Msg
&mut self
message
&Msg