setPadding static method

dynamic setPadding({
  1. dynamic widget,
  2. dynamic leftPadding,
  3. dynamic rightPadding,
  4. dynamic bottomPadding,
  5. dynamic topPadding,
})

Implementation

static setPadding(
    {widget, leftPadding, rightPadding, bottomPadding, topPadding}) {
  return Padding(
    padding: EdgeInsets.only(
      left: leftPadding ?? 0,
      right: rightPadding ?? 0,
      bottom: bottomPadding ?? 0,
      top: topPadding ?? 0,
    ),
    child: widget,
  );
}