cMargSymmetric method

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

Adds symmetric margin to the widget.

h specifies the horizontal margin, and v specifies the vertical margin.

Implementation

Widget cMargSymmetric({
  double h = 0.0,
  double v = 0.0,
}) =>
    Container(
      margin: EdgeInsets.symmetric(
        horizontal: h,
        vertical: v,
      ),
      child: this,
    );