WidgetToRenderBoxAdapter constructor

WidgetToRenderBoxAdapter({
  1. required RenderBox renderBox,
  2. VoidCallback? onBuild,
  3. VoidCallback? onUnmount,
})

Creates an adapter for placing a specific RenderBox in the widget tree.

Implementation

WidgetToRenderBoxAdapter({
  required this.renderBox,
  this.onBuild,
  this.onUnmount,
}) : super(key: GlobalObjectKey(renderBox));