getClosetHighlightPoints method

List<HighlightPoint> getClosetHighlightPoints(
  1. double horizontalDragPosition
)

Implementation

List<HighlightPoint> getClosetHighlightPoints(double horizontalDragPosition) {
  List<HighlightPoint> highlights = [];

  seriesMap!.forEach((key, list) {
    HighlightPoint closest = _findClosest(list, horizontalDragPosition);
    highlights.add(closest);
  });

  return highlights;
}