pushAndRemoveUntil<T extends Object?> function
Future<T?>
pushAndRemoveUntil<T extends Object?>(
- Widget widget, {
- bool maintainState = true,
- bool fullscreenDialog = false,
- RoutePushStyle? pushStyle,
- RouteSettings? settings,
- RoutePredicate? predicate,
打开新页面 并移出堆栈所有页面
Implementation
Future<T?> pushAndRemoveUntil<T extends Object?>(Widget widget,
{bool maintainState = true,
bool fullscreenDialog = false,
RoutePushStyle? pushStyle,
RouteSettings? settings,
RoutePredicate? predicate}) =>
widget.pushAndRemoveUntil(
settings: settings,
maintainState: maintainState,
fullscreenDialog: fullscreenDialog,
pushStyle: pushStyle ?? FlExtended().pushStyle);