pushAndRemoveUntil<T extends Object?> static method
Remove pages until predicate
returns true and push a new anonymous page route
Implementation
static Future<T?> pushAndRemoveUntil<T extends Object?>(
Widget page,
bool Function(Route<dynamic> route) predicate, {
String? navigator,
RouteType? routeType,
RouteSettings? settings,
bool? maintainState,
bool? fullscreenDialog,
bool? allowSnapshotting,
}) =>
_getContext(navigator).pushAndRemoveUntil<T>(
page,
routeType: routeType,
settings: settings,
maintainState: maintainState,
fullscreenDialog: fullscreenDialog,
allowSnapshotting: allowSnapshotting,
predicate,
);