hSpaced method

List<Widget> hSpaced(
  1. double space
)

Inserts horizontal spacing between each widget in the list.

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

Example:

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

Implementation

List<Widget> hSpaced(double space) {
  return insertBetween(space.hSpacing).toList();
}