Flow.wrap constructor

const Flow.wrap(
  1. Iterable<Widget> children, {
  2. Key? key,
  3. FlowType type = FlowType.wrap,
})

Creates a wrapping layout using FlowType.wrap.

This alias for Flow.around handles overflowing children by wrapping lines, useful for multi-line arrangements in MutableText lists or CycleButton options.

Implementation

const Flow.wrap(
  this.children, {
  super.key,
  this.type = FlowType.wrap,
});