present static method
弹出页面
Implementation
static Future present(String routeName, PageType pageType,
{Map? params, bool? maintainState, bool animated = true}) {
if (pageType == PageType.flutter) {
var route = DNavigatorManager.materialRoute(
routeName: routeName,
params: params,
maintainState: maintainState!,
pushAnimated: animated,
fullscreenDialog: true);
DNavigatorManager.nodeHandle(routeName, pageType, DStackConstant.present,
result: {}, animated: animated, route: route);
return _navigator!.push(route);
} else {
DNavigatorManager.nodeHandle(routeName, pageType, DStackConstant.present,
result: params, animated: animated);
return Future.value(true);
}
}