RenderClipRRect constructor
- RenderBox? child,
- BorderRadiusGeometry borderRadius = BorderRadius.zero,
- CustomClipper<
RRect> ? clipper, - Clip clipBehavior = Clip.antiAlias,
- TextDirection? textDirection,
Creates a rounded-rectangular clip.
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.
Implementation
RenderClipRRect({
super.child,
BorderRadiusGeometry borderRadius = BorderRadius.zero,
super.clipper,
super.clipBehavior,
TextDirection? textDirection,
}) : _borderRadius = borderRadius,
_textDirection = textDirection;