pushAndPopUntil<T extends Object?, T0 extends Object?> method
Future<PageRouteResult<T?> >
pushAndPopUntil<T extends Object?, T0 extends Object?>({
- required String newName,
- String? oldName,
- dynamic arguments,
- TransitionAnimationConfig? config,
- T0? result,
连续移除多个回退栈并打开新界面
newName
新增路由名
oldName
回退到哪个路由名 如果为null
or当前路由栈没有路由
则Remove All Route
arguments
参数
config
转场动画配置
result
返回上一页的结果
Implementation
Future<PageRouteResult<T?>>
pushAndPopUntil<T extends Object?, T0 extends Object?>({
required String newName,
String? oldName,
dynamic arguments,
TransitionAnimationConfig? config,
T0? result,
}) {
return _delegate.pushAndPopUntil<T, T0>(
newName: newName,
oldName: oldName,
arguments: arguments,
result: result,
transitionBuilder: config == null
? null
: (RouteSettings settings, WidgetBuilder builder) =>
AnimationTranslateTransition(
builder: builder,
config: config,
settings: settings,
),
);
}