getIndexForAngle method
Index of the slice lying under angle in degrees (0 at 3 o'clock, increasing clockwise), taking
rotationAngle into account, or -1 when no slice lies under it (beyond maxAngle or without data).
Implementation
@override
int getIndexForAngle(double angle) {
final a = Utils.getNormalizedAngle(angle - rotationAngle);
for (var i = 0; i < _absoluteAngles.length; i++) {
if (_absoluteAngles[i] > a) return i;
}
return -1;
}