getIndexInEntries method

  1. @override
int getIndexInEntries (
  1. int xIndex
)
override

Implementation

@override
int getIndexInEntries(int xIndex) {
  for (int i = 0; i < getEntryCount(); i++) {
    if (xIndex == getEntryForIndex(i).x) return i;
  }

  return -1;
}