Skip to main content

LayerBase

Trait LayerBase 

Source
pub trait LayerBase: Layer {
    // Provided methods
    fn dispose(self: Handle<Self>, app: &mut App) { ... }
    fn attach(self: Handle<Self>, app: &mut App, owner: HandleId) { ... }
    fn detach(self: Handle<Self>, app: &mut App) { ... }
    fn fire_composition_callbacks(
        self: Handle<Self>,
        app: &mut App,
        include_children: bool,
    ) { ... }
}
Expand description

The bodies of Flutter’s Layer that a subclass calls as super: LayerBase::dispose(self, app) where Dart writes super.dispose(). The virtual call is on AnyLayer.

Provided Methods§

Source

fn dispose(self: Handle<Self>, app: &mut App)

Layer.dispose.

Source

fn attach(self: Handle<Self>, app: &mut App, owner: HandleId)

Layer.attach.

Source

fn detach(self: Handle<Self>, app: &mut App)

Layer.detach.

Source

fn fire_composition_callbacks( self: Handle<Self>, app: &mut App, include_children: bool, )

Layer._fireCompositionCallbacks.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T: Layer> LayerBase for T