pushAndRemoveUntil<T extends Object?> method
Future<T?>
pushAndRemoveUntil<T extends Object?>({
- bool maintainState = true,
- bool fullscreenDialog = false,
- RoutePushStyle pushStyle = RoutePushStyle.material,
- RouteSettings? settings,
- RoutePredicate? predicate,
Implementation
Future<T?> pushAndRemoveUntil<T extends Object?>(
{bool maintainState = true,
bool fullscreenDialog = false,
RoutePushStyle pushStyle = RoutePushStyle.material,
RouteSettings? settings,
RoutePredicate? predicate}) =>
GlobalOptions().globalNavigatorKey.currentState!.pushAndRemoveUntil(
buildPageRoute(
settings: settings,
maintainState: maintainState,
fullscreenDialog: fullscreenDialog,
pushStyle: pushStyle),
predicate ?? (_) => false);