RenderFlow constructor Null safety

RenderFlow(
  1. {List<RenderBox>? children,
  2. required FlowDelegate delegate}
)

Creates a render object for a flow layout.

For optimal performance, consider using children that return true from isRepaintBoundary.

Implementation

RenderFlow({
  List<RenderBox>? children,
  required FlowDelegate delegate,
}) : assert(delegate != null),
     _delegate = delegate {
  addAll(children);
}