cornerRadiusWithClipRRectOnly method
add custom corner radius each side
Implementation
ClipRRect cornerRadiusWithClipRRectOnly({
int bottomLeft = 0,
int bottomRight = 0,
int topLeft = 0,
int topRight = 0,
}) {
return ClipRRect(
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(bottomLeft.toDouble()),
bottomRight: Radius.circular(bottomRight.toDouble()),
topLeft: Radius.circular(topLeft.toDouble()),
topRight: Radius.circular(topRight.toDouble()),
),
clipBehavior: Clip.antiAliasWithSaveLayer,
child: this,
);
}