clipPath method
A modifier that clips its widget to a path.
Example:
Icon(Icons.person)
.clipPath();
Implementation
Widget clipPath({
CustomClipper<Path>? clipper,
Clip behavior: Clip.antiAlias,
}) {
return ClipPath(child: this, clipper: clipper, clipBehavior: behavior);
}