clipRect method

Widget clipRect({
  1. Key? key,
  2. CustomClipper<Rect>? clipper,
  3. Clip clipBehavior = Clip.antiAlias,
})

A widget that clips its child using a rectangle.

Implementation

Widget clipRect({
  Key? key,
  CustomClipper<Rect>? clipper,
  Clip clipBehavior = Clip.antiAlias,
}) {
  return ClipRect(
    key: key,
    clipper: clipper,
    clipBehavior: clipBehavior,
    child: this,
  );
}