goForward method
Implementation
String? goForward() {
if (!canGoForward()) return null;
_historyIndex++;
currentView = history[_historyIndex];
return currentView;
}
String? goForward() {
if (!canGoForward()) return null;
_historyIndex++;
currentView = history[_historyIndex];
return currentView;
}