ClipRRect constructor

const ClipRRect({Key key, BorderRadius borderRadius, 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.

Implementation

const ClipRRect({
  Key key,
  this.borderRadius,
  this.clipper,
  this.clipBehavior = Clip.antiAlias,
  Widget child,
}) : assert(borderRadius != null || clipper != null),
     assert(clipBehavior != null),
     super(key: key, child: child);