fractionAt method
Where within slice index the pointer is, from 0.0 (slice start) to
1.0 (slice end).
Implementation
double fractionAt(int index, double rotation, double pointerAngle) {
if (sweeps[index] == 0) return 0.5;
final double u = _positionUnderPointer(rotation, pointerAngle);
return ((u - offsets[index]) / sweeps[index]).clamp(0.0, 1.0);
}