vSpaced method

List<Widget> vSpaced(
  1. double space
)

Inserts vertical spacing between each widget in the list.

The space parameter defines the amount of vertical space to insert.

Example:

final widgets = [Text('A'), Text('B'), Text('C')];
final vSpacedWidgets = widgets.vSpaced(10.0);

Implementation

List<Widget> vSpaced(double space) {
  return insertBetween(space.vSpacing).toList();
}