popToTab method

void popToTab(
  1. AppTabType tab
)

Pops all dialogs bottom sheets and global routes and opens given tab

Implementation

void popToTab(AppTabType tab) {
  popGlobalToFirst();
  setCurrentTab(tab);
}