innerRadius property
The inner radius accessor.
final arc = Arc(…)..innerRadius = (thisArg, [args]) => 40;
arc.innerRadius; // (thisArg, [args]) => 40
The inner radius accessor defaults to:
innerRadius(thisArg, [args]) {
args[0]["innerRadius"];
}
Specifying the inner radius as a function is useful for constructing a stacked polar bar chart, often in conjunction with a sqrt scale. More commonly, a constant inner radius is used for a donut or pie chart. If the outer radius is smaller than the inner radius, the inner and outer radii are swapped. A negative value is treated as zero.
Implementation
num Function(Arc, [List<Object?>?]) innerRadius;