RenderView constructor Null safety

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

Creates the root of the render tree.

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

The configuration must not be null.

Implementation

RenderView({
  RenderBox? child,
  required ViewConfiguration configuration,
  required ui.FlutterView window,
}) : assert(configuration != null),
     _configuration = configuration,
     _window = window {
  this.child = child;
}