void popUntil(bool Function(NomoPage) predicate) { while (!predicate(_stack.last) && _stack.length > 1) { pop(); } }