getPrevious method

String? getPrevious()

Implementation

String? getPrevious() {
  if (_history.isEmpty) return null;
  _currentIndex = (_currentIndex > 0) ? _currentIndex - 1 : 0;
  return _currentIndex < _history.length ? _history[_currentIndex] : null;
}