isInBoundsX method

Checks if the provided entry object is in bounds for drawing considering the current animation phase.

@param e @param set @return

Implementation

bool isInBoundsX(Entry? e, IBarLineScatterCandleBubbleDataSet set) {
  if (e == null) return false;

  double entryIndex = set.getEntryIndex2(e).toDouble();

  if (entryIndex >= set.getEntryCount() * animator!.getPhaseX()) {
    return false;
  } else {
    return true;
  }
}