clipPath method

Widget clipPath({
  1. CustomClipper<Path>? clipper,
  2. Clip behavior = Clip.antiAlias,
})

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);
}