title: Flutter recognize touch events inside Donut chart
body: <p><a href="https://i.stack.imgur.com/YmMfX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YmMfX.png" alt="enter image description here"></a></p>
  
  <p>I have Custom Painter that draws a donut chart like the above picture.</p>
  
  <p>I am using </p>
  
  <p><code>canvas.drawArc(Rect.fromCircle(center: center, radius: radius),
            startRadian, radians[i], true, paint);</code></p>
  
  <p>for drawing this. </p>
  
  <p>Is there any possible way to detect a touch event inside any of these Arcs?</p>
  
  <p>If its a <strong>Rect</strong>  I can use <strong>rect.contains(offset)</strong> , but here it's all Arcs.</p>
  
  <p><strong>Note</strong>: I have access to Touch coordinates by wrapping custom painter inside <strong>GestureDetector</strong>, all I want is to distinguish the touch inside any of this Arc and highlight them accordingly.</p>