RenderFlow constructor Null safety

RenderFlow(
  1. {List<RenderBox>? children,
  2. required FlowDelegate delegate,
  3. Clip clipBehavior = Clip.hardEdge}
)

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,
  Clip clipBehavior = Clip.hardEdge,
}) : assert(delegate != null),
     assert(clipBehavior != null),
     _delegate = delegate,
     _clipBehavior = clipBehavior {
  addAll(children);
}