RenderView constructor

RenderView({
  1. RenderBox? child,
  2. ViewConfiguration? configuration,
  3. required FlutterView view,
})

Creates the root of the render tree.

Typically created by the binding (e.g., RendererBinding).

Providing a configuration is optional, but a configuration must be set before calling prepareInitialFrame. This decouples creating the RenderView object from configuring it. Typically, the object is created by the View widget and configured by the RendererBinding when the RenderView is registered with it by the View widget.

Implementation

RenderView({
  RenderBox? child,
  ViewConfiguration? configuration,
  required ui.FlutterView view,
}) : _view = view {
  if (configuration != null) {
    this.configuration = configuration;
  }
  this.child = child;
}