back method

void back([
  1. int count = 1
])

Navigates back to the previous page and tab indices.

If there is a previous index in the history list, the current indices are updated to the previous indices, and the previous indices are removed from the history list.

Implementation

void back([int count = 1]) {
  for (var i = 0; i < count; i++) {
    if (canGoBack) {
      _history.removeAt(0);
    }
  }
  navigate(pageIndex: previousPageIndex, tabIndex: previousTabIndex);
}