rounded method
ClipRRect
rounded({
- Key? key,
- double radius = 8,
- Clip clipBehavior = .antiAlias,
- CustomClipper<
RRect> ? clipper,
Returns a new rounded widget with the given radius.
Implementation
ClipRRect rounded({
Key? key,
double radius = 8,
Clip clipBehavior = .antiAlias,
CustomClipper<RRect>? clipper,
}) {
return ClipRRect(
key: key,
clipBehavior: clipBehavior,
clipper: clipper,
borderRadius: .circular(radius),
child: this,
);
}