RenderClipRect({RenderBox child, CustomClipper<Rect> clipper })

Creates a rectangular clip.

If clipper is null, the clip will match the layout size and position of the child.

Source

RenderClipRect({
  RenderBox child,
  CustomClipper<Rect> clipper
}) : super(child: child, clipper: clipper);