PaddingWrapper.all constructor

PaddingWrapper.all({
  1. required Widget child,
  2. double padding = 16.0,
})

Factory constructor for applying the same padding to all sides.

Implementation

factory PaddingWrapper.all({
  required Widget child,
  double padding = 16.0,
}) {
  return PaddingWrapper(
    padding: EdgeInsets.all(padding),
    child: child,
  );
}