clipRect method

Widget clipRect({
  1. Key? key,
  2. CustomClipper<Rect>? clipper,
  3. Clip clipBehavior = Clip.hardEdge,
})

裁剪矩形

Implementation

Widget clipRect({
  Key? key,
  CustomClipper<Rect>? clipper,
  Clip clipBehavior = Clip.hardEdge,
}) =>
    ClipRect(
      key: key,
      clipper: clipper,
      clipBehavior: clipBehavior,
      child: this,
    );