hSpaced method
- 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();
}