pushNamedAndRemoveUntil<T> method

Future<T?>? pushNamedAndRemoveUntil<T>(
  1. String routeName, {
  2. RoutePredicate? predicate,
  3. dynamic arguments,
  4. int? id,
})

Push route and clear stack until predicate is satisfied

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

Implementation

Future<T?>? pushNamedAndRemoveUntil<T>(String routeName,
    {RoutePredicate? predicate, dynamic arguments, int? id}) {
  return G.Get.offAllNamed<T?>(
    routeName,
    predicate: predicate,
    arguments: arguments,
    id: id,
  );
}