cClipOnly method
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,
);