PaddingWrapper.symmetric constructor

PaddingWrapper.symmetric({
  1. required Widget child,
  2. double vertical = 16.0,
  3. double horizontal = 16.0,
})

Factory constructor for symmetric padding (vertical and horizontal).

Implementation

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