pushNamedAndRemoveUntil static method

Future pushNamedAndRemoveUntil(
  1. String routeName, {
  2. bool routePredicate = false,
  3. dynamic arguments,
})

Implementation

static Future<dynamic> pushNamedAndRemoveUntil(String routeName,
    {bool routePredicate = false, dynamic arguments}) async {
  return navigatorKey.currentState?.pushNamedAndRemoveUntil(
      routeName, (route) => routePredicate,
      arguments: arguments);
}