Flow constructor Null safety
- {Key? key,
- required FlowDelegate delegate,
- List<
Widget> children = const <Widget>[], - 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));