goForward method

String? goForward()

Go forward one move in history

Implementation

String? goForward() {
  if (!canGoForward) return null;

  _currentIndex++;
  return _history[_currentIndex].fen;
}