RenderObjectToWidgetAdapter<T extends RenderObject> constructor Null safety

RenderObjectToWidgetAdapter<T extends RenderObject>(
  1. {Widget? child,
  2. required RenderObjectWithChildMixin<T> container,
  3. String? debugShortDescription}
)

Creates a bridge from a RenderObject to an Element tree.

Used by WidgetsBinding to attach the root widget to the RenderView.

Implementation

RenderObjectToWidgetAdapter({
  this.child,
  required this.container,
  this.debugShortDescription,
}) : super(key: GlobalObjectKey(container));