popUntil method
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);
}