EasyPadding.only constructor

EasyPadding.only({
  1. Key? key,
  2. double left = 0,
  3. double top = 0,
  4. double right = 0,
  5. double bottom = 0,
  6. required Widget child,
})

Different padding for each side

Implementation

factory EasyPadding.only({
  Key? key,
  double left = 0,
  double top = 0,
  double right = 0,
  double bottom = 0,
  required Widget child,
}) {
  return EasyPadding._(
    key: key,
    padding: EdgeInsets.only(
      left: left,
      top: top,
      right: right,
      bottom: bottom,
    ),
    child: child,
  );
}