Wrap constructor

Wrap({
  1. List<BloomNode> children = const [],
  2. num spacing = 0,
  3. num runSpacing = 0,
})

Creates a wrapping flex layout.

Wrap(children: [StyledText('A'), StyledText('B')], spacing: 8);

Implementation

Wrap(
    {List<BloomNode> children = const [],
    num spacing = 0,
    num runSpacing = 0})
    : super('div',
          children: children,
          style: 'display: flex; flex-wrap: wrap; '
              'column-gap: ${_px(spacing)}; row-gap: ${_px(runSpacing)}');