PaddedChildrenList.symmetric constructor
PaddedChildrenList.symmetric({
- required List<
Widget> children, - double vertical = 16.0,
- double horizontal = 16.0,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
Factory constructor for symmetric padding (vertical and horizontal).
Implementation
factory PaddedChildrenList.symmetric({
required List<Widget> children,
double vertical = 16.0,
double horizontal = 16.0,
MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
}) {
return PaddedChildrenList(
padding: EdgeInsets.symmetric(vertical: vertical, horizontal: horizontal),
mainAxisAlignment: mainAxisAlignment,
crossAxisAlignment: crossAxisAlignment,
children: children,
);
}