Skip to main content

ContainerRenderObjectBase

Trait ContainerRenderObjectBase 

Source
pub trait ContainerRenderObjectBase: ContainerRenderObjectMixin {
    // Provided methods
    fn insert(
        self: RenderHandle<Self>,
        app: &mut App,
        child: Self::ChildType,
        after: Option<Self::ChildType>,
    ) { ... }
    fn remove(self: RenderHandle<Self>, app: &mut App, child: Self::ChildType) { ... }
    fn remove_all(self: RenderHandle<Self>, app: &mut App) { ... }
    fn move_child(
        self: RenderHandle<Self>,
        app: &mut App,
        child: Self::ChildType,
        after: Option<Self::ChildType>,
    ) { ... }
}
Expand description

Flutter’s ContainerRenderObjectMixin bodies that an override calls through super.

Blanket-implemented for every container, and repeats the default bodies of the four child-list mutators: a leaf’s own override shadows the default it would otherwise call.

Provided Methods§

Source

fn insert( self: RenderHandle<Self>, app: &mut App, child: Self::ChildType, after: Option<Self::ChildType>, )

Flutter’s ContainerRenderObjectMixin.insert.

Source

fn remove(self: RenderHandle<Self>, app: &mut App, child: Self::ChildType)

Flutter’s ContainerRenderObjectMixin.remove.

Source

fn remove_all(self: RenderHandle<Self>, app: &mut App)

Flutter’s ContainerRenderObjectMixin.removeAll.

Source

fn move_child( self: RenderHandle<Self>, app: &mut App, child: Self::ChildType, after: Option<Self::ChildType>, )

Flutter’s ContainerRenderObjectMixin.move.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§