effectiveRadius property
double
get
effectiveRadius
The effective corner radius passed to the shader for this shape.
For symmetric shapes this is the single corner radius value. For
asymmetric shapes (e.g. LiquidVerticalRoundedRectangle) it is the
dominant / largest corner radius; the shader receives the per-corner
breakdown separately. For shapes that are inherently circular (e.g.
LiquidOval) this returns double.infinity, which callers clamp to
min(width, height) / 2.
This getter is the single source of truth consumed by all rendering paths
and is obfuscation-safe — unlike runtimeType.toString() heuristics or
dynamic property access, which break under --obfuscate.
Implementation
double get effectiveRadius;