replace method

VoPageNavigationResult replace(
  1. String key, {
  2. bool? forward,
})

Implementation

VoPageNavigationResult replace(String key, {bool? forward}) {
  _isForwardNavigation = forward ?? true;

  if (_history.isNotEmpty) {
    _history.removeLast();
  }

  return _setCurrentPage(key, addToHistory: true);
}