needsHighlight method

bool needsHighlight(
  1. int index
)

True when the slice at index is currently highlighted.

Implementation

bool needsHighlight(int index) {
  if (!valuesToHighlight()) return false;

  final highlighted = this.highlighted;
  for (final high in highlighted) {
    if (kotlinFloatToInt(high.x) == index) return true;
  }
  return false;
}