fn on_added(
        self,
        f: impl Fn(&mut Self, &mut LifeCycleCtx, &T, &Env) + 'static,
    ) -> ControllerHost<Self, Added<T, Self>> {
        ControllerHost::new(self, Added::new(f))
    }
/// Provide a closure that will be called when this widget is added to the widget tree.
///
/// You can use this to perform any initial setup.
///
/// This is equivalent to handling the [`LifeCycle::WidgetAdded`] event in a
/// custom [`Controller`].
///
/// [`LifeCycle::WidgetAdded`]: crate::LifeCycle::WidgetAdded
Provide a closure that will be called when this widget is added to the widget tree.
You can use this to perform any initial setup.

This is equivalent to handling the [`LifeCycle::WidgetAdded`] event in a
custom [`Controller`].


Provide a closure that will be called when this widget is added to the widget tree . You can use this to perform any initial setup . This is equivalent to handling the [ ` LifeCycle :: WidgetAdded ` ] event in a custom [ ` Controller ` ] .
fn on_added(
        self,
        f: impl Fn(&mut Self, &mut LifeCycleCtx, &T, &Env) + 'static,
    ) -> ControllerHost<Self, Added<T, Self>> {
        ControllerHost::new(self, Added::new(f))
    }
fn on_added ( self , f : impl Fn ( & mut Self , & mut LifeCycleCtx , & T , & Env ) + ' static , ) -> ControllerHost < Self , Added < T , Self > > { ControllerHost :: new ( self , Added :: new ( f ) ) }
Provide a closure that will be called when this widget is added to the widget tree.
Provide a closure that will be called when this widget is added to the widget tree .
self
f
impl Fn(&mut Self, &mut LifeCycleCtx, &T, &Env) + 'static
self
f
impl Fn(&mut Self, &mut LifeCycleCtx, &T, &Env) + 'static