jumpTo

void jumpTo(

  1. int index
)

Jump to a specific index in history.

Implementation

void jumpTo(int index) {
  if (index < 0 || index >= _history.length) {
    throw RangeError('Index $index is out of bounds [0, ${_history.length})');
  }
  _currentIndex = index;
  _notifyStore();
}