PaddedChildrenList.all constructor

PaddedChildrenList.all({
  1. required List<Widget> children,
  2. double padding = 16.0,
  3. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  4. 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,
  );
}