RenderSliverClipRRect constructor

RenderSliverClipRRect({
  1. BorderRadiusGeometry borderRadius = .zero,
  2. CustomClipper<RRect>? clipper,
  3. Clip clipBehavior = .antiAlias,
  4. ClipOverlapBehavior clipOverlap = .followEdge,
  5. TextDirection? textDirection,
})

Creates a sliver render object for clipping with a rounded rectangle.

The borderRadius defaults to BorderRadius.zero, i.e. a rectangle with right-angled corners.

If clipper is non-null, then borderRadius is ignored.

If clipBehavior is Clip.none, no clipping will be applied. The clipBehavior argument defaults to Clip.antiAlias.

Implementation

RenderSliverClipRRect({
  this._borderRadius = .zero,
  super.clipper,
  super.clipBehavior = .antiAlias,
  super.clipOverlap = .followEdge,
  this._textDirection,
});