uniformPadding method
Adds uniform padding to the widget.
padding specifies the amount of padding to apply on all sides.
key is an optional identifier for the padding widget.
Implementation
Widget uniformPadding(double padding, {Key? key}) {
return Padding(
padding: EdgeInsets.all(padding),
key: key,
child: this,
);
}