backUntil method
Pops routes until the predicate is met.
Implementation
@override
void backUntil(bool Function(GetPage) predicate) {
while (_activePages.length > 1 && !predicate(_activePages.last.route!)) {
_popWithResult();
}
notifyListeners();
}