cPadSymmetric method

Widget cPadSymmetric({
  1. double h = 0.0,
  2. double v = 0.0,
})

Adds horizontal and vertical padding to the widget.

Parameters:

  • h: The amount of horizontal padding.
  • v: The amount of vertical padding.

Returns: A new widget with the specified horizontal and vertical padding.

Implementation

Widget cPadSymmetric({
  double h = 0.0,
  double v = 0.0,
}) =>
    Padding(
      padding: EdgeInsets.symmetric(
        horizontal: h,
        vertical: v,
      ),
      child: this,
    );