resetNavigation method

dynamic resetNavigation({
  1. int? redirectToBottomOptionIndex,
})

Implementation

resetNavigation({int? redirectToBottomOptionIndex}) {
  pages.clear();
  pages.addAll(this.initialPages);
  pageHistory = [0];
  pageHistoryTabSelected = [0];
  currentBottomIndex = 0;
  _currentPageIndex = 0;
  this._onResetNavigation.forEach((func) => func());
  this._onListener.forEach((func) => func());
  if (redirectToBottomOptionIndex != null) {
    this.selectBottomTab(redirectToBottomOptionIndex);
  }
}