clipRect method
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,
);
}