borderRadius property Null safety

BorderRadius? borderRadius

The border radius of the rounded corners.

Values are clamped so that horizontal and vertical radii sums do not exceed width/height.

This property is ignored if the shape is not BoxShape.rectangle.

The value null is treated like BorderRadius.zero.

Implementation

BorderRadius? get borderRadius => _borderRadius;
void borderRadius=(BorderRadius? value)

Implementation

set borderRadius(BorderRadius? value) {
  if (borderRadius == value)
    return;
  _borderRadius = value;
  _markNeedsClip();
}