roundedTop method

Widget roundedTop({
  1. double radius = 6.0,
})

Applies border-radius only to the top side, matching .rounded-top.

Implementation

Widget roundedTop({double radius = 6.0}) {
  return ClipRRect(
    borderRadius: BorderRadius.vertical(
      top: Radius.circular(radius),
    ),
    child: this,
  );
}