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