replace static method

Future replace(
  1. String routeName,
  2. PageType pageType, {
  3. Map? params,
  4. bool maintainState = true,
  5. bool fullscreenDialog = false,
  6. bool animated = true,
  7. bool homePage = false,
})

只支持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);
}