padBox function

Widget padBox({
  1. double? size,
})

Returns a Padding widget with uniform padding on all sides.

Parameters:

  • size: The size of the padding. Defaults to 10 if not specified.

Implementation

Widget padBox({double? size}) {
  return Padding(padding: EdgeInsets.all(size ?? 10));
}