ClipRect constructor

const ClipRect({
  1. Key? key,
  2. CustomClipper<Rect>? clipper,
  3. Clip clipBehavior = Clip.hardEdge,
  4. Widget? child,
})

Creates a rectangular clip.

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

If clipBehavior is Clip.none, no clipping will be applied.

Implementation

const ClipRect({super.key, this.clipper, this.clipBehavior = Clip.hardEdge, super.child});