untilOffAllBackToRoot function
void
untilOffAllBackToRoot()
关闭所有页面回root also like Navigator.of(context).popUntil((route) => route.isFirst);
Implementation
void untilOffAllBackToRoot() {
return until((route) => route.isFirst);
}