roundedRect static method
Creates a rounded rectangle clip path.
Implementation
static Path roundedRect(
Rect rect, {
double radius = 0,
double? topLeft,
double? topRight,
double? bottomLeft,
double? bottomRight,
}) {
return Path()
..addRRect(RRect.fromRectAndCorners(
rect,
topLeft: Radius.circular(topLeft ?? radius),
topRight: Radius.circular(topRight ?? radius),
bottomLeft: Radius.circular(bottomLeft ?? radius),
bottomRight: Radius.circular(bottomRight ?? radius),
));
}