clipPath method

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

Wraps this widget with a ClipPath widget.

Implementation

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