symmetricPadding method
Adds symmetric padding to the widget.
horizontal
specifies the padding on the left and right.
vertical
specifies the padding on the top and bottom.
key
is an optional identifier for the padding widget.
Implementation
Widget symmetricPadding({
double horizontal = 0.0,
double vertical = 0.0,
Key? key,
}) {
return Padding(
padding: EdgeInsets.symmetric(horizontal: horizontal, vertical: vertical),
key: key,
child: this,
);
}