cMargOnly method

Widget cMargOnly({
  1. double l = 0.0,
  2. double t = 0.0,
  3. double r = 0.0,
  4. double b = 0.0,
})

Adds margin to specific sides of the widget.

You can specify the margin for each side individually: l (left), t (top), r (right), and b (bottom).

Implementation

Widget cMargOnly({
  double l = 0.0,
  double t = 0.0,
  double r = 0.0,
  double b = 0.0,
}) =>
    Container(
      margin: EdgeInsets.only(
        top: t,
        left: l,
        right: r,
        bottom: b,
      ),
      child: this,
    );