getBorderRadius method
Calculates BorderRadius.
Implementation
BorderRadius? getBorderRadius(InheritedProperties resolved) {
final topLeft = radiusTopLeft._getValue(resolved);
final topRight = radiusTopRight._getValue(resolved);
final bottomLeft = radiusBottomLeft._getValue(resolved);
final bottomRight = radiusBottomRight._getValue(resolved);
if (topLeft == null &&
topRight == null &&
bottomLeft == null &&
bottomRight == null) {
return null;
}
return BorderRadius.only(
topLeft: topLeft ?? Radius.zero,
topRight: topRight ?? Radius.zero,
bottomLeft: bottomLeft ?? Radius.zero,
bottomRight: bottomRight ?? Radius.zero,
);
}