RenderSliverClipRect constructor

RenderSliverClipRect({
  1. CustomClipper<Rect>? clipper,
  2. Clip clipBehavior = .hardEdge,
  3. ClipOverlapBehavior clipOverlap = .followEdge,
})

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. The clipBehavior argument defaults to Clip.hardEdge.

Implementation

RenderSliverClipRect({
  super.clipper,
  super.clipBehavior = .hardEdge,
  super.clipOverlap = .followEdge,
});