subtractByBorder function
Implementation
BorderRadius subtractByBorder(BorderRadius radius, double borderWidth) {
return BorderRadius.only(
topLeft: _subtractSafe(radius.topLeft, Radius.circular(borderWidth)),
topRight: _subtractSafe(radius.topRight, Radius.circular(borderWidth)),
bottomLeft: _subtractSafe(radius.bottomLeft, Radius.circular(borderWidth)),
bottomRight:
_subtractSafe(radius.bottomRight, Radius.circular(borderWidth)),
);
}