canGoBack method

bool canGoBack()

Whether navigator can go back to a page.

Implementation

bool canGoBack() {
  if (_isDisposed) {
    throw Exception('Cannot call canGoBack() after state is disposed off.');
  }

  return _renderElement!.canOpenPreviousPath();
}