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