popUntil

fun Navigator.popUntil(predicate: (Screen) -> Boolean)(source)

Calls Navigator.pop until the given predicate is matched or it pops the root.