popUntil method
Implementation
void popUntil(bool Function(T stackElement) test) {
while (glance() != null && !test(glance() as T)) {
pop();
}
}
void popUntil(bool Function(T stackElement) test) {
while (glance() != null && !test(glance() as T)) {
pop();
}
}