pushAndRemoveUntilTransition<T> method
Future<T?>
pushAndRemoveUntilTransition<T>({
- Widget? child,
- ChildBuilder? childBuilder,
- required PageTransitionType type,
- required RoutePredicate predicate,
- Duration duration = const Duration(milliseconds: 200),
- Curve curve = Curves.linear,
- bool fullscreenDialog = false,
- bool opaque = false,
- RouteSettings? settings,
Implementation
Future<T?> pushAndRemoveUntilTransition<T>({
Widget? child,
ChildBuilder? childBuilder,
required PageTransitionType type,
required RoutePredicate predicate,
Duration duration = const Duration(milliseconds: 200),
Curve curve = Curves.linear,
bool fullscreenDialog = false,
bool opaque = false,
RouteSettings? settings,
}) {
return Navigator.pushAndRemoveUntil<T>(
this,
PageTransition(
type: type,
child: child,
childBuilder: childBuilder,
duration: duration,
curve: curve,
fullscreenDialog: fullscreenDialog,
opaque: opaque,
settings: settings,
),
predicate,
);
}