setPadding static method
dynamic
setPadding({
- dynamic widget,
- dynamic leftPadding,
- dynamic rightPadding,
- dynamic bottomPadding,
- 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,
);
}