RenderCustomSingleChildLayoutBox constructor Null safety

RenderCustomSingleChildLayoutBox(
  1. {RenderBox? child,
  2. required SingleChildLayoutDelegate delegate}
)

Creates a render box that defers its layout to a delegate.

The delegate argument must not be null.

Implementation

RenderCustomSingleChildLayoutBox({
  RenderBox? child,
  required SingleChildLayoutDelegate delegate,
}) : assert(delegate != null),
     _delegate = delegate,
     super(child);