Flow constructor Null safety

Flow(
  1. {Key? key,
  2. required FlowDelegate delegate,
  3. List<Widget> children = const <Widget>[],
  4. Clip clipBehavior = Clip.hardEdge}
)

Creates a flow layout.

Wraps each of the given children in a RepaintBoundary to avoid repainting the children when the flow repaints.

The delegate argument must not be null.

Implementation

Flow({
  super.key,
  required this.delegate,
  List<Widget> children = const <Widget>[],
  this.clipBehavior = Clip.hardEdge,
}) : assert(delegate != null),
     assert(clipBehavior != null),
     super(children: RepaintBoundary.wrapAll(children));