popUntil method

void popUntil(
  1. RoutePredicate predicate, {
  2. int? id,
})

Pops the back stack until the predicate is satisfied

id is for when you are using nested navigation, as explained in documentation.

Implementation

void popUntil(RoutePredicate predicate, {int? id}) {
  G.Get.until(predicate, id: id);
}