getEntryByTouchPoint method

Entry? getEntryByTouchPoint(
  1. double x,
  2. double y
)

returns the Entry object displayed at the touched position of the chart

@param x @param y @return

Implementation

Entry? getEntryByTouchPoint(double x, double y) {
  Highlight? h = getHighlightByTouchPoint(x, y);
  if (h != null) {
    return getData()!.getEntryForHighlight(h);
  }
  return null;
}