pushAndRemoveUntil<T extends Object?> method

Future<T?> pushAndRemoveUntil<T extends Object?>({
  1. required Route<T> newRoute,
  2. required String routeName,
})

Implementation

Future<T?> pushAndRemoveUntil<T extends Object?>({
  required Route<T> newRoute,
  required String routeName,
}) {
  return navigator.pushAndRemoveUntil<T>(
    newRoute,
    ModalRoute.withName(routeName),

  );
}