clipPath method

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

A widget that clips its child using a path.

Implementation

Widget clipPath({
  required CustomClipper<Path> clipper,
  Key? key,
  Clip clipBehavior = Clip.antiAlias,
}) {
  return ClipPath(
    key: key,
    clipper: clipper,
    clipBehavior: clipBehavior,
    child: this,
  );
}