RenderClipRect constructor

RenderClipRect({RenderBox child, CustomClipper<Rect> clipper, Clip clipBehavior: Clip.antiAlias })

Creates a rectangular clip.

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

The clipBehavior cannot be Clip.none.

Implementation

RenderClipRect({
  RenderBox child,
  CustomClipper<Rect> clipper,
  Clip clipBehavior = Clip.antiAlias,
}) : super(child: child, clipper: clipper, clipBehavior: clipBehavior);