rounded method

ClipRRect rounded({
  1. Key? key,
  2. double radius = 8,
  3. Clip clipBehavior = .antiAlias,
  4. 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,
  );
}