pushReplacementTransition<T, TO> method

Future<T?> pushReplacementTransition<T, TO>({
  1. Widget? child,
  2. ChildBuilder? childBuilder,
  3. required PageTransitionType type,
  4. Duration duration = const Duration(milliseconds: 200),
  5. Curve curve = Curves.linear,
  6. bool fullscreenDialog = false,
  7. bool opaque = false,
  8. RouteSettings? settings,
  9. 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,
  );
}