pushAndRemoveUntil<T extends Object?> function

Future<T?> pushAndRemoveUntil<T extends Object?>(
  1. Widget widget, {
  2. bool maintainState = true,
  3. bool fullscreenDialog = false,
  4. RoutePushStyle? pushStyle,
  5. RouteSettings? settings,
  6. 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);