getAdjustedBorderRadius method
Implementation
BorderRadius getAdjustedBorderRadius(TextDirection textDirection) {
if (this.radius != null) {
return BorderRadius.circular(this.radius!);
}
var rawRadius = borderRadius;
if (rawRadius == null) return BorderRadius.zero;
var radius = rawRadius.resolve(textDirection);
// since the align adds 3 to the border, we need to add 3 to all of the radii
return BorderRadius.only(
topLeft: radius.topLeft + Radius.circular(align),
topRight: radius.topRight + Radius.circular(align),
bottomLeft: radius.bottomLeft + Radius.circular(align),
bottomRight: radius.bottomRight + Radius.circular(align),
);
}