effectiveRadius property

  1. @override
double get effectiveRadius
override

Returns the larger of topRadius and bottomRadius.

The shader receives individual per-corner radii separately via the asymmetric data path; this value is used only when a single representative radius is needed (e.g. for the lightweight shader fallback).

Implementation

@override
double get effectiveRadius => math.max(topRadius, bottomRadius);