PaddingWrapper.horizontal constructor

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

Factory constructor for horizontal padding only.

Implementation

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