clearHistory method

void clearHistory()

Clears all pages recorded for goBack.

Implementation

void clearHistory() {
  if (_pageHistory.isEmpty) {
    return;
  }
  _pageHistory.clear();
  notifyListeners();
}