reset method

void reset()

Implementation

void reset() {
  _currentIndex = _history.length;
}