ClipRRect constructor Null safety
- {Key? key,
- BorderRadiusGeometry? borderRadius = BorderRadius.zero,
- CustomClipper<
RRect> ? clipper, - Clip clipBehavior = Clip.antiAlias,
- Widget? child}
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.
The clipBehavior argument must not be null. If clipBehavior is Clip.none, no clipping will be applied.
Implementation
const ClipRRect({
super.key,
this.borderRadius = BorderRadius.zero,
this.clipper,
this.clipBehavior = Clip.antiAlias,
super.child,
}) : assert(borderRadius != null || clipper != null),
assert(clipBehavior != null);