PaddingWrapper.vertical constructor

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

Factory constructor for vertical padding only.

Implementation

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