cornerRadius property

num Function(Arc, [List<Object?>?]) cornerRadius
getter/setter pair

The corner radius accessor.

final arc = Arc(…)..cornerRadius = (thisArg, [args]) => 18;

arc.cornerRadius; // (thisArg, [args]) => 18

The corner radius accessor defaults to:

cornerRadius(thisArg, [args]) {
  args[0]["cornerRadius"];
}

If the corner radius is greater than zero, the corners of the arc are rounded using circles of the given radius. For a circular sector, the two outer corners are rounded; for an annular sector, all four corners are rounded.

The corner radius may not be larger than (outerRadius - innerRadius) / 2. In addition, for arcs whose angular span is less than π, the corner radius may be reduced as two adjacent rounded corners intersect. This occurs more often with the inner corners. See the arc corners animation for illustration.

Implementation

num Function(Arc, [List<Object?>?]) cornerRadius;