pushNamedAndRemoveUntil<T extends Object?> method

Future<T?> pushNamedAndRemoveUntil<T extends Object?>(
  1. String newRouteName,
  2. bool predicate(
    1. Route route
    ), {
  3. Object? arguments,
})

Remove pages until predicate returns true and push a named page route

Implementation

Future<T?> pushNamedAndRemoveUntil<T extends Object?>(
  String newRouteName,
  bool Function(Route<dynamic> route) predicate, {
  Object? arguments,
}) =>
    Navigator.of(this).pushNamedAndRemoveUntil<T>(
      newRouteName,
      predicate,
      arguments: arguments,
    );