Flow constructor

Flow(
  1. {Key key,
  2. @required FlowDelegate delegate,
  3. List<Widget> children: const []}
)

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({
  Key key,
  @required this.delegate,
  List<Widget> children = const <Widget>[],
}) : assert(delegate != null),
     super(key: key, children: RepaintBoundary.wrapAll(children));