ColumnWithSpacing constructor
ColumnWithSpacing({
- 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
ColumnWithSpacing({
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(height: spacing)] : <Widget>[],
...children.expand((element) => [element, SizedBox(height: spacing)]),
]);