clipPath method

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

Wrap a widget in ClipPath.

Implementation

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