padAngle property

num Function(Pie<T>, [List<Object?>?]) padAngle
getter/setter pair

The pad angle of the pie.

final pie = Pie(…)..padAngle = (thisArg, [args]) => …;

pie.padAngle; // (thisArg, [args]) => …

The pad angle specifies the angular separation in radians between adjacent arcs. The total amount of padding is the specified angle times the number of elements in the input data list, and at most |endAngle - startAngle|; the remaining space is divided proportionally by value such that the relative area of each arc is preserved.

The pad angle is typically expressed as a constant number but can also be expressed as a function of data. When a function, the pad angle accessor is invoked once, being passed this pie generator and the same arguments.

The start angle accessor defaults to:

padAngle(thisArg, [args]) {
  return 0;
}

Implementation

num Function(Pie<T>, [List<Object?>?]) padAngle = constant(0);