Skip to main content

RenderObjectElementWidget

Trait RenderObjectElementWidget 

Source
pub trait RenderObjectElementWidget {
    type Widget: RenderObjectWidget;

    // Required method
    fn widget_of(widget: &WidgetRef) -> &Self::Widget;
}
Expand description

The widget type of a render object element made for one widget type (a viewport, the overlay’s theater), and how to read it off the erased widget, for the typed reads its own overrides make. The framework’s leaf, single-child and multi-child elements serve every widget of their kind and do not implement it.

Required Associated Types§

Source

type Widget: RenderObjectWidget

The widget class.

Required Methods§

Source

fn widget_of(widget: &WidgetRef) -> &Self::Widget

Dart’s widget as RenderObjectWidget.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§