borderRadius method
Implementation
Widget borderRadius({
double? topLeft,
double? topRight,
double? bottomLeft,
double? bottomRight,
double? verticalTop,
double? verticalBottom,
double? horizontalLeft,
double? horizontalRight,
double? all,
}) {
return ClipRRect(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(topLeft ?? verticalTop ?? horizontalLeft ?? all ?? 0),
topRight: Radius.circular(topRight ?? verticalTop ?? horizontalRight ?? all ?? 0),
bottomLeft: Radius.circular(bottomLeft ?? verticalBottom ?? horizontalLeft ?? all ?? 0),
bottomRight: Radius.circular(bottomRight ?? verticalBottom ?? horizontalRight ?? all ?? 0),
),
child: this,
);
}