popUntil method

void popUntil(
  1. bool predicate(
    1. NomoPage
    )
)

Implementation

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