clipRRect method

Widget clipRRect({
  1. required BorderRadius borderRadius,
  2. Key? key,
  3. CustomClipper<RRect>? clipper,
  4. Clip clipBehavior = Clip.antiAlias,
})

A widget that clips its child using a rounded rectangle.

Implementation

Widget clipRRect({
  required BorderRadius borderRadius,
  Key? key,
  CustomClipper<RRect>? clipper,
  Clip clipBehavior = Clip.antiAlias,
}) {
  return ClipRRect(
    key: key,
    borderRadius: borderRadius,
    clipper: clipper,
    clipBehavior: clipBehavior,
    child: this,
  );
}