goToAndRemoveUntil<T extends Object?> method

Future<T?> goToAndRemoveUntil<T extends Object?>(
  1. WidgetBuilder builder,
  2. RoutePredicate predicate, {
  3. RouteSettings? settings,
  4. bool fullscreenDialog = false,
})

Implementation

Future<T?> goToAndRemoveUntil<T extends Object?>(
  WidgetBuilder builder,
  RoutePredicate predicate, {
  RouteSettings? settings,
  bool fullscreenDialog = false,
}) {
  return Navigator.pushAndRemoveUntil<T>(
    this,
    MaterialPageRoute(
      builder: builder,
      fullscreenDialog: fullscreenDialog,
      settings: settings,
    ),
    predicate,
  );
}