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