effectiveCornerRadius property

double get effectiveCornerRadius

Uniform circular corners use the same radius fitting as the paint path.

Implementation

double get effectiveCornerRadius =>
    cornerRadius.clamp(0, math.min(bounds.width, bounds.height) / 2);