clip method

Widget clip({
  1. Clip clipBehavior = Clip.hardEdge,
})

Implementation

Widget clip({Clip clipBehavior = Clip.hardEdge}) {
  return ClipRect(
    clipBehavior: clipBehavior,
    child: this,
  );
}