highlightValue4 method

void highlightValue4(
  1. double x,
  2. double y,
  3. int dataSetIndex,
  4. bool callListener,
)

Highlights any y-value at the given x-value in the given DataSet. Provide -1 as the dataSetIndex to undo all highlighting. @param x The x-value to highlight @param y The y-value to highlight. Supply NaN for "any" @param dataSetIndex The dataset index to search in @param callListener Should the listener be called for this change

Implementation

void highlightValue4(
    double x, double y, int dataSetIndex, bool callListener) {
  if (dataSetIndex < 0 || dataSetIndex >= _data!.getDataSetCount()) {
    highlightValue6(null, callListener);
  } else {
    highlightValue6(
        Highlight(x: x, y: y, dataSetIndex: dataSetIndex), callListener);
  }
}