RowWithSpacing constructor
RowWithSpacing({
- Key? key,
- double spacing = 8,
- bool hasLeadingSpace = false,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- MainAxisSize mainAxisSize = MainAxisSize.max,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- TextDirection? textDirection,
- VerticalDirection verticalDirection = VerticalDirection.down,
- TextBaseline? textBaseline,
- List<
Widget> children = const [],
Implementation
RowWithSpacing({
super.key,
double spacing = 8,
bool hasLeadingSpace = false,
super.mainAxisAlignment,
super.mainAxisSize,
super.crossAxisAlignment,
super.textDirection,
super.verticalDirection,
super.textBaseline,
List<Widget> children = const [],
}) : super(children: [
...hasLeadingSpace ? [SizedBox(width: spacing)] : <Widget>[],
...children.expand((element) => [element, SizedBox(width: spacing)]),
]);