pushNamedAndRemoveUntil<T> method

Future<T?> pushNamedAndRemoveUntil<T>(
  1. String pagePath, {
  2. T? argument,
})

Implementation

Future<T?> pushNamedAndRemoveUntil<T>(String pagePath, {T? argument}) async {
  return await Navigator.pushNamedAndRemoveUntil<T>(
    this,
    pagePath,
    (route) => false,
    arguments: argument,
  );
}