backTo method

void backTo(
  1. int pageIndex,
  2. int tabIndex
)

Navigates back to the specified page and tab indices.

Implementation

void backTo(int pageIndex, int tabIndex) {
  if (_history.any((x) => x.$1 == pageIndex && x.$2 == tabIndex)) {
    while (this.pageIndex != pageIndex || this.tabIndex != tabIndex) {
      back();
    }
  }
}