RenderClipPath constructor

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

Creates a path clip.

If clipper is null, the clip will be a rectangle that matches the layout size and location of the child. However, rather than use this default, consider using a RenderClipRect, which can achieve the same effect more efficiently.

The clipBehavior cannot be Clip.none.

Implementation

RenderClipPath({
  RenderBox child,
  CustomClipper<Path> clipper,
  Clip clipBehavior = Clip.antiAlias,
}) : assert(clipBehavior != Clip.none), super(child: child, clipper: clipper, clipBehavior: clipBehavior);