back method

Implementation

VoPageNavigationResult back() {
  if (!canGoBack) {
    return VoPageNavigationResult.blocked;
  }

  if (_currentPage?.canLeave?.call() == false) {
    return VoPageNavigationResult.blocked;
  }

  _isForwardNavigation = false;

  _currentPage?.onExit?.call();

  _history.removeLast();

  return _setCurrentPage(_history.last, addToHistory: false);
}