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§
Sourcetype Widget: RenderObjectWidget
type Widget: RenderObjectWidget
The widget class.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".