RenderObjectToWidgetElement<T extends RenderObject> constructor Null safety

RenderObjectToWidgetElement<T extends RenderObject>(
  1. RenderObjectToWidgetAdapter<T> widget
)

Creates an element that is hosted by a RenderObject.

The RenderObject created by this element is not automatically set as a child of the hosting RenderObject. To actually attach this element to the render tree, call RenderObjectToWidgetAdapter.attachToRenderTree.

Implementation

RenderObjectToWidgetElement(RenderObjectToWidgetAdapter<T> super.widget);