clipRRect method
裁剪圆角
Implementation
Widget clipRRect({
Key? key,
double? all,
double? topLeft,
double? topRight,
double? bottomLeft,
double? bottomRight,
CustomClipper<RRect>? clipper,
Clip clipBehavior = Clip.antiAlias,
}) =>
ClipRRect(
key: key,
clipper: clipper,
clipBehavior: clipBehavior,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(topLeft ?? all ?? 0.0),
topRight: Radius.circular(topRight ?? all ?? 0.0),
bottomLeft: Radius.circular(bottomLeft ?? all ?? 0.0),
bottomRight: Radius.circular(bottomRight ?? all ?? 0.0),
),
child: this,
);