pushAndRemoveUntil<T extends Object?> function
Future<T?>
pushAndRemoveUntil<T extends Object?>(
- Widget widget, {
- PageRouteOptions? options,
- RoutePredicate? predicate,
打开新页面 并移出堆栈所有页面
Implementation
Future<T?> pushAndRemoveUntil<T extends Object?>(Widget widget,
{PageRouteOptions? options, RoutePredicate? predicate}) =>
widget.pushAndRemoveUntil(widget,
options: (options ??= PageRouteOptions(style: FlExtended().pushStyle)),
predicate: predicate ?? (Route<dynamic> route) => route.isFirst);