paddingSymmetric method

Padding paddingSymmetric({
  1. double horizontal = 0,
  2. double vertical = 0,
})

Adds padding around the widget. EdgeInsets.symmetric() is used to create the padding.

Implementation

Padding paddingSymmetric({
  double horizontal = 0,
  double vertical = 0,
}) {
  return Padding(
    padding: EdgeInsets.symmetric(
      horizontal: horizontal,
      vertical: vertical,
    ),
    child: this,
  );
}