setPaddingAll function

dynamic setPaddingAll({
  1. dynamic widget,
  2. dynamic margin,
})

Implementation

setPaddingAll({widget, margin}) {
  return Padding(
    padding: EdgeInsets.all(margin ?? 0),
    child: widget,
  );
}