pushAndRemoveUntil static method
dynamic
pushAndRemoveUntil(})
跳转指定页面并清除剩余所有页面
Implementation
static pushAndRemoveUntil(String routeName, PageType pageType,
{Map? params,
bool maintainState = true,
bool homePage = false,
bool animated = true,
bool fullscreenDialog = false}) {
var route = DNavigatorManager.materialRoute(
routeName: routeName,
params: params,
maintainState: maintainState,
pushAnimated: animated,
fullscreenDialog: fullscreenDialog);
DNavigatorManager.nodeHandle(
routeName, pageType, DStackConstant.pushAndRemoveUntil,
result: params, homePage: homePage, animated: animated, route: route);
return _navigator!.pushAndRemoveUntil(route, (route) => route == null);
}