popToRoot function

void popToRoot()

回到根页面

Implementation

void popToRoot() {
  Navigator.of(xbGlobalContext).popUntil((route) => route.isFirst);
}