getEntryForHighlight method

  1. @override
Entry? getEntryForHighlight(
  1. Highlight? highlight
)
override

Get the Entry for a corresponding highlight object

@param highlight @return the entry that is highlighted

Implementation

@override
Entry? getEntryForHighlight(Highlight? highlight) {
  return getDataSetByIndex(highlight?.dataSetIndex??0)!
      .getEntryForIndex(highlight?.x?.toInt()??0);
}