pushNamedAndRemoveUntil<T> method
Future<T?> ?
pushNamedAndRemoveUntil<T>(
- String routeName, {
- RoutePredicate? predicate,
- dynamic arguments,
- 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,
);
}