remove all pages in the stack until predicate
predicate
void popUntil([bool Function(Route<dynamic>)? predicate]) { _validateRouterState(); _navigator.popUntil(predicate ?? (_) => false); }