endAngle property

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

The overall end angle of the pie.

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

pie.endAngle; // (thisArg, [args]) => pi

The end angle here means the overall end angle of the pie, i.e., the end angle of the last arc. It is typically expressed as a constant number but can also be expressed as a function of data. When a function, the end angle accessor is invoked once, being passed this pie generator and the same arguments.

The end angle accessor defaults to:

endAngle(thisArg, [args]) {
  return pi;
}

Angles are in radians, with 0 at -y (12 o’clock) and positive angles proceeding clockwise. The value of the end angle is constrained to startAngle ± τ, such that |endAngle - startAngle| ≤ τ.

Implementation

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