replace static method
只支持flutter使用,替换flutter页面 animated 是否有进场动画
Implementation
static Future replace(
String routeName,
PageType pageType, {
Map? params,
bool maintainState = true,
bool fullscreenDialog = false,
bool animated = true,
bool homePage = false,
}) {
return DNavigatorManager.replace(routeName, pageType,
params: params,
maintainState: maintainState,
homePage: homePage,
animated: animated,
fullscreenDialog: fullscreenDialog);
}