getEntryByTouchPoint method

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

Entry nearest to a pixel position, or null when there is no data or no entry within maxHighlightDistance.

Implementation

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