cClipOnly method

Widget cClipOnly({
  1. double tl = 0.0,
  2. double tr = 0.0,
  3. double bl = 0.0,
  4. double br = 0.0,
})

Clip the widget with different radii for each corner.

You can specify the radius for each corner individually: tl (top-left), tr (top-right), bl (bottom-left), and br (bottom-right).

Implementation

Widget cClipOnly({
  double tl = 0.0,
  double tr = 0.0,
  double bl = 0.0,
  double br = 0.0,
}) =>
    ClipRRect(
      borderRadius: BorderRadius.only(
        topLeft: Radius.circular(tl),
        topRight: Radius.circular(tr),
        bottomLeft: Radius.circular(bl),
        bottomRight: Radius.circular(br),
      ),
      child: this,
    );