circular method
Implementation
Widget circular({
double radius = 50.0, // Default radius for the circle
Color? color, // Optional color for the background
BoxFit fit =
BoxFit.cover, // Optional BoxFit to fit image properly in the circle
}) {
return ClipOval(
child: Container(
width: radius * 2, // Width is twice the radius
height: radius * 2, // Height is twice the radius
color: color ??
Colors.transparent, // Use transparent color if not provided
child: this,
),
);
}