clipRect method
A modifier that clips its widget to a rectangular shape.
Example:
Icon(Icons.person)
.clipRect();
Implementation
Widget clipRect({
CustomClipper<Rect>? clipper,
Clip behavior: Clip.hardEdge,
}) {
return ClipRect(child: this, clipper: clipper, clipBehavior: behavior);
}