pub trait RenderSliverSingleBoxAdapterBase: RenderSliverSingleBoxAdapter {
// Provided method
fn set_child_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
constraints: SliverConstraints,
geometry: SliverGeometry,
) { ... }
}Expand description
Flutter’s RenderSliverSingleBoxAdapter bodies that an override calls through super.
Blanket-implemented for every single-box adapter. It holds Flutter’s
RenderSliverSingleBoxAdapter.setChildParentData body, and the default of
RenderSliverSingleBoxAdapter::set_child_parent_data forwards here, so a leaf that
overrides it can still call super; inlining the body back into the default breaks that.
Provided Methods§
Sourcefn set_child_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
constraints: SliverConstraints,
geometry: SliverGeometry,
)
fn set_child_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, constraints: SliverConstraints, geometry: SliverGeometry, )
Flutter’s RenderSliverSingleBoxAdapter.setChildParentData; an override calls it where
Dart writes super.setChildParentData(child, constraints, geometry).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".